pub struct HttpRequestLayer<C: LayerContext = Noop> { /* private fields */ }Expand description
Tower layer
Implementations§
Source§impl HttpRequestLayer
impl HttpRequestLayer
Sourcepub fn new_simple(make_span: MakeSpan) -> Self
pub fn new_simple(make_span: MakeSpan) -> Self
Creates new layer with noop context.
Source§impl<C: LayerContext> HttpRequestLayer<C>
impl<C: LayerContext> HttpRequestLayer<C>
Sourcepub fn with_context<C2: LayerContext>(self, context: C2) -> HttpRequestLayer<C2>
pub fn with_context<C2: LayerContext>(self, context: C2) -> HttpRequestLayer<C2>
Replaces context
Trait Implementations§
Source§impl<C: Clone + LayerContext> Clone for HttpRequestLayer<C>
impl<C: Clone + LayerContext> Clone for HttpRequestLayer<C>
Source§fn clone(&self) -> HttpRequestLayer<C>
fn clone(&self) -> HttpRequestLayer<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S, C: LayerContext> Layer<S> for HttpRequestLayer<C>
impl<S, C: LayerContext> Layer<S> for HttpRequestLayer<C>
Auto Trait Implementations§
impl<C> Freeze for HttpRequestLayer<C>where
C: Freeze,
impl<C> RefUnwindSafe for HttpRequestLayer<C>where
C: RefUnwindSafe,
impl<C> Send for HttpRequestLayer<C>
impl<C> Sync for HttpRequestLayer<C>
impl<C> Unpin for HttpRequestLayer<C>where
C: Unpin,
impl<C> UnwindSafe for HttpRequestLayer<C>where
C: UnwindSafe,
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