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 + Send
trait object. - This is a
futures::Stream
of responses resulting from calling the wrappedtower::Service
for each request received on the wrappedStream
. - A stream of responses received from the inner service in received order.
- A
Future
consuming aService
and request, waiting until theService
is ready, and then callingService::call
with the request, and waiting for thatFuture
. - Optionally forwards requests to an inner service.
- Future yielding a
Service
once the service is ready to process a request - A
Service
implemented by a closure. - A boxed
Service
trait object.
Enums§
- Combine two different service types into a single type.
Functions§
- Returns a new
ServiceFn
with the given closure.