Struct tower_http::request_id::SetRequestIdLayer
source · [−]pub struct SetRequestIdLayer<M> { /* private fields */ }This is supported on crate feature
request-id only.Expand description
Set request id headers and extensions on requests.
This layer applies the SetRequestId middleware.
See the module docs and SetRequestId for more details.
Implementations
Create a new SetRequestIdLayer.
Create a new SetRequestIdLayer that uses x-request-id as the header name.
Trait Implementations
Auto Trait Implementations
impl<M> RefUnwindSafe for SetRequestIdLayer<M> where
M: RefUnwindSafe,
impl<M> Send for SetRequestIdLayer<M> where
M: Send,
impl<M> Sync for SetRequestIdLayer<M> where
M: Sync,
impl<M> Unpin for SetRequestIdLayer<M> where
M: Unpin,
impl<M> UnwindSafe for SetRequestIdLayer<M> where
M: 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