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.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, F> Service for TracingService<S, F>
impl<S, F> Service for TracingService<S, F>
Source§type Future = Either<<S as Service>::Future, Instrumented<<S as Service>::Future>>
type Future = Either<<S as Service>::Future, Instrumented<<S as Service>::Future>>
The future response value.
Source§fn poll_ready(&mut self, ctx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, ctx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Ready
when the service is able to process requests. Read moreSource§fn call(&mut self, req: Self::Request) -> Self::Future
fn call(&mut self, req: Self::Request) -> Self::Future
Process the request and return the response asynchronously. Read more
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§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>
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>
Source§impl<T> IntoService<T> for Twhere
T: Service,
impl<T> IntoService<T> for Twhere
T: Service,
Source§fn into_service(self) -> T
fn into_service(self) -> T
Convert to a
Service