Struct PropagateRequestIdLayer
pub struct PropagateRequestIdLayer { /* private fields */ }Expand description
Propagate request ids from requests to responses.
This layer applies the [PropagateRequestId] middleware.
See the module docs and [PropagateRequestId] for more details.
Implementations§
§impl PropagateRequestIdLayer
impl PropagateRequestIdLayer
pub fn new(header_name: HeaderName) -> PropagateRequestIdLayer
pub fn new(header_name: HeaderName) -> PropagateRequestIdLayer
Create a new PropagateRequestIdLayer.
pub fn x_request_id() -> PropagateRequestIdLayer
pub fn x_request_id() -> PropagateRequestIdLayer
Create a new PropagateRequestIdLayer that uses x-request-id as the header name.
Trait Implementations§
§impl Clone for PropagateRequestIdLayer
impl Clone for PropagateRequestIdLayer
§fn clone(&self) -> PropagateRequestIdLayer
fn clone(&self) -> PropagateRequestIdLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PropagateRequestIdLayer
impl Debug for PropagateRequestIdLayer
§impl<S> Layer<S> for PropagateRequestIdLayer
impl<S> Layer<S> for PropagateRequestIdLayer
§fn layer(&self, inner: S) -> <PropagateRequestIdLayer as Layer<S>>::Service
fn layer(&self, inner: S) -> <PropagateRequestIdLayer as Layer<S>>::Service
Wrap the given service with the middleware, returning a new service
that has been decorated with the middleware.
Auto Trait Implementations§
impl !Freeze for PropagateRequestIdLayer
impl RefUnwindSafe for PropagateRequestIdLayer
impl Send for PropagateRequestIdLayer
impl Sync for PropagateRequestIdLayer
impl Unpin for PropagateRequestIdLayer
impl UnsafeUnpin for PropagateRequestIdLayer
impl UnwindSafe for PropagateRequestIdLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more