Struct hrpc::common::layer::modify::ModifyLayer [−][src]
pub struct ModifyLayer<ModifyReq, ModifyResp> { /* fields omitted */ }
Expand description
Layer for creating Modify
instances.
Implementations
impl<ModifyReq, ModifyResp> ModifyLayer<ModifyReq, ModifyResp> where
ModifyReq: Fn(&mut BoxRequest),
ModifyResp: Fn(&mut BoxResponse),
impl<ModifyReq, ModifyResp> ModifyLayer<ModifyReq, ModifyResp> where
ModifyReq: Fn(&mut BoxRequest),
ModifyResp: Fn(&mut BoxResponse),
impl<ModifyReq> ModifyLayer<ModifyReq, fn(_: &mut BoxResponse)> where
ModifyReq: Fn(&mut BoxRequest),
impl<ModifyReq> ModifyLayer<ModifyReq, fn(_: &mut BoxResponse)> where
ModifyReq: Fn(&mut BoxRequest),
Create a new layer that only modifies requests.
impl<ModifyResp> ModifyLayer<fn(_: &mut BoxRequest), ModifyResp> where
ModifyResp: Fn(&mut BoxResponse),
impl<ModifyResp> ModifyLayer<fn(_: &mut BoxRequest), ModifyResp> where
ModifyResp: Fn(&mut BoxResponse),
Create a new layer that only modifies responses.
Trait Implementations
impl<ModifyReq, ModifyResp, S> Layer<S> for ModifyLayer<ModifyReq, ModifyResp> where
ModifyReq: Clone,
ModifyResp: Clone,
impl<ModifyReq, ModifyResp, S> Layer<S> for ModifyLayer<ModifyReq, ModifyResp> where
ModifyReq: Clone,
ModifyResp: Clone,
Auto Trait Implementations
impl<ModifyReq, ModifyResp> RefUnwindSafe for ModifyLayer<ModifyReq, ModifyResp> where
ModifyReq: RefUnwindSafe,
ModifyResp: RefUnwindSafe,
impl<ModifyReq, ModifyResp> Send for ModifyLayer<ModifyReq, ModifyResp> where
ModifyReq: Send,
ModifyResp: Send,
impl<ModifyReq, ModifyResp> Sync for ModifyLayer<ModifyReq, ModifyResp> where
ModifyReq: Sync,
ModifyResp: Sync,
impl<ModifyReq, ModifyResp> Unpin for ModifyLayer<ModifyReq, ModifyResp> where
ModifyReq: Unpin,
ModifyResp: Unpin,
impl<ModifyReq, ModifyResp> UnwindSafe for ModifyLayer<ModifyReq, ModifyResp> where
ModifyReq: UnwindSafe,
ModifyResp: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn vzip(self) -> V
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more