Available on crate feature
util only.Expand description
Various utility types and functions that are generally used with Tower.
Modules§
- backoff
- This module contains generic backoff utilities to be used with the retry and limit layers.
- rng
- PRNG utilities for tower middleware.
Structs§
- AndThen
- Service returned by the
and_thencombinator. - AndThen
Layer - A
Layerthat produces aAndThenservice. - MapErr
- Service returned by the
map_errcombinator. - MapErr
Layer - A
Layerthat producesMapErrservices. - MapRequest
- Service returned by the
MapRequestcombinator. - MapRequest
Layer - A
Layerthat producesMapRequestservices. - MapResponse
- Service returned by the
map_responsecombinator. - MapResponse
Layer - A
Layerthat produces aMapResponseservice. - MapResult
- Service returned by the
map_resultcombinator. - MapResult
Layer - A
Layerthat produces aMapResultservice. - Service
Fn - A
Serviceimplemented by a closure. - Then
Servicereturned by thethencombinator.- Then
Layer - A
Layerthat produces aThenservice.
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§
- option_
layer - Convert an
Option<Layer>into aLayer. - service_
fn - Returns a new
ServiceFnwith the given closure.