Struct axum::AddExtensionLayer
source ·
[−]pub struct AddExtensionLayer<T> { /* private fields */ }
Expand description
Layer
for adding some shareable value to request extensions.
See Sharing state with handlers 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
Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
pub fn vzip(self) -> V
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