Struct tower_http::add_extension::AddExtensionLayer
source · [−]pub struct AddExtensionLayer<T> { /* private fields */ }
This is supported on crate feature
add-extension
only.Expand description
Layer
for adding some shareable value to request extensions.
See the module docs for more details.
Implementations
Create a new AddExtensionLayer
.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for AddExtensionLayer<T> where
T: RefUnwindSafe,
impl<T> Send for AddExtensionLayer<T> where
T: Send,
impl<T> Sync for AddExtensionLayer<T> where
T: Sync,
impl<T> Unpin for AddExtensionLayer<T> where
T: Unpin,
impl<T> UnwindSafe for AddExtensionLayer<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect
only.Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. 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