[−][src]Module tower::util
Various utility types and functions that are generally used with Tower.
Modules
error | Error types |
future | Future types |
Structs
AndThen | Service returned by the |
AndThenLayer | |
BoxService | A boxed |
CallAll | This is a |
CallAllUnordered | A stream of responses received from the inner service in received order. |
FutureService | A type that implements |
MapErr | Service returned by the |
MapErrLayer | |
MapRequest | Service returned by the |
MapRequestLayer | A |
MapResponse | Service returned by the |
MapResponseLayer | A |
MapResult | Service returned by the |
MapResultLayer | |
Oneshot | A |
Optional | Optionally forwards requests to an inner service. |
ReadyAnd | A future that yields a mutable reference to the service when it is ready to accept a request. |
ReadyOneshot | A |
ServiceFn | A |
Then | |
ThenLayer | |
UnsyncBoxService | A boxed |
Enums
Either | Combine two different service types into a single type. |
Traits
ServiceExt | An extension trait for |
Functions
future_service | Returns a new |
service_fn | Returns a new |