Expand description
Various utility types and functions that are generally used with Tower.
Modules
- Error types
- Future types
Structs
- Service returned by the
and_then
combinator. - A boxed
Layer
trait object. - A boxed
Service + Send
trait object. - A stream of responses received from the inner service in received order.
- Service returned by the
map_err
combinator. Service
returned by themap_future
combinator.- Service returned by the
MapRequest
combinator. - A
Layer
that producesMapRequest
services. - Service returned by the
map_response
combinator. - A
Layer
that produces aMapResponse
service. - Service returned by the
map_result
combinator. - 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.
- A future that yields a mutable reference to the service when it is ready to accept a request.
- A
Future
that yields the service when it is ready to accept a request. - A
Service
implemented by a closure. - A boxed
Service
trait object.
Enums
- Combine two different service types into a single type.
Traits
- An extension trait for
Service
s that provides a variety of convenient adapters
Functions
- Returns a new
FutureService
for the given future. - Convert an
Option<Layer>
into aLayer
. - Returns a new
ServiceFn
with the given closure.
Type Definitions
- ReadyAndDeprecatedA future that yields a mutable reference to the service when it is ready to accept a request.