Struct tower::layer::util::Identity [−][src]
pub struct Identity { /* fields omitted */ }
Expand description
A no-op middleware.
When wrapping a Service
, the Identity
layer returns the provided
service without modifying it.
Implementations
Trait Implementations
Decorates a Service
, transforming either the request or the response.
Auto Trait Implementations
impl RefUnwindSafe for Identity
impl UnwindSafe for Identity
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more