Expand description
Various utility types and functions that are generally with Tower.
Modules§
Structs§
- BoxService
- A boxed
Service + Sendtrait object. - CallAll
- This is a
futures::Streamof responses resulting from calling the wrappedtower::Servicefor each request received on the wrappedStream. - Call
AllUnordered - A stream of responses received from the inner service in received order.
- Oneshot
- A
Futureconsuming aServiceand request, waiting until theServiceis ready, and then callingService::callwith the request, and waiting for thatFuture. - Optional
- Optionally forwards requests to an inner service.
- Ready
- A future that resolves when a
Serviceis ready to accept a request. - Ready
And - A future that yields a mutable reference to the service when it is ready to accept a request.
- Ready
Oneshot - A future that yields the service when it is ready to accept a request.
- Service
Fn - A
Serviceimplemented by a closure. - Unsync
BoxService - A boxed
Servicetrait object.
Enums§
- Either
- Combine two different service types into a single type.
Traits§
- Service
Ext - An extension trait for
Services that provides a variety of convenient adapters
Functions§
- service_
fn - Returns a new
ServiceFnwith the given closure.