Crate tower_util
source ·Expand description
Various utility types and functions that are generally with Tower.
Modules§
- Error types
- Future types
- Different ways to chain service layers.
Structs§
- A boxed
Service + Sendtrait object. - This is a
futures::Streamof responses resulting from calling the wrappedtower::Servicefor each request received on the wrappedStream. - A stream of responses received from the inner service in received order.
- A
Futureconsuming aServiceand request, waiting until theServiceis ready, and then callingService::callwith the request, and waiting for thatFuture. - Optionally forwards requests to an inner service.
- Future yielding a
Serviceonce the service is ready to process a request - A
Serviceimplemented by a closure. - A boxed
Servicetrait object.
Enums§
- Combine two different service types into a single type.
Functions§
- Returns a new
ServiceFnwith the given closure.