pub struct TracingService<S, F> { /* private fields */ }
Expand description
A Service
implementation that automatically enters/exits tracing spans
for the wrapped inner service.
Implementations§
source§impl<S, F> TracingService<S, F>
impl<S, F> TracingService<S, F>
Trait Implementations§
source§impl<S: Clone, F: Clone> Clone for TracingService<S, F>
impl<S: Clone, F: Clone> Clone for TracingService<S, F>
source§fn clone(&self) -> TracingService<S, F>
fn clone(&self) -> TracingService<S, F>
Returns a copy of the value. Read more
1.6.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, Req, F> Service<Req> for TracingService<S, F>
impl<S, Req, F> Service<Req> for TracingService<S, F>
source§type Error = <S as Service<Req>>::Error
type Error = <S as Service<Req>>::Error
Errors produced by the service when polling readiness or executing call.
source§type Future = Either<<S as Service<Req>>::Future, Instrumented<<S as Service<Req>>::Future>>
type Future = Either<<S as Service<Req>>::Future, Instrumented<<S as Service<Req>>::Future>>
The future response value.
Auto Trait Implementations§
impl<S, F> Freeze for TracingService<S, F>
impl<S, F> RefUnwindSafe for TracingService<S, F>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<S, F> Send for TracingService<S, F>
impl<S, F> Sync for TracingService<S, F>
impl<S, F> Unpin for TracingService<S, F>
impl<S, F> UnwindSafe for TracingService<S, F>where
S: UnwindSafe,
F: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<S, Req> IntoService<S, Req> for Swhere
S: Service<Req>,
impl<S, Req> IntoService<S, Req> for Swhere
S: Service<Req>,
§fn into_service(self) -> S
fn into_service(self) -> S
Convert to a
Service