Expand description
Various utility types and functions that are generally used with Tower.
Modules§
- Error types
 - Future types
 
Structs§
- Service returned by the
and_thencombinator. - A boxed
Layertrait object. - A boxed
Service + Sendtrait object. - A stream of responses received from the inner service in received order.
 - Service returned by the
map_errcombinator. Servicereturned by themap_futurecombinator.- Service returned by the
MapRequestcombinator. - A
Layerthat producesMapRequestservices. - Service returned by the
map_responsecombinator. - A
Layerthat produces aMapResponseservice. - Service returned by the
map_resultcombinator. - 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.
 - A future that yields a mutable reference to the service when it is ready to accept a request.
 - A
Futurethat yields the service when it is ready to accept a request. - A
Serviceimplemented by a closure. - A boxed
Servicetrait object. 
Enums§
- Combine two different service types into a single type.
 
Traits§
- An extension trait for
Services that provides a variety of convenient adapters 
Functions§
- Returns a new
FutureServicefor the given future. - Convert an
Option<Layer>into aLayer. - Returns a new
ServiceFnwith the given closure. 
Type Aliases§
- ReadyAndDeprecatedA future that yields a mutable reference to the service when it is ready to accept a request.