[−][src]Struct actori_tracing::TracingService
A Service
implementation that automatically enters/exits tracing spans
for the wrapped inner service.
Methods
impl<S, F> TracingService<S, F>
[src]
Trait Implementations
impl<S: Clone, F: Clone> Clone for TracingService<S, F>
[src]
fn clone(&self) -> TracingService<S, F>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S, F> Service for TracingService<S, F> where
S: Service,
F: Fn(&S::Request) -> Option<Span>,
[src]
S: Service,
F: Fn(&S::Request) -> Option<Span>,
type Request = S::Request
Requests handled by the service.
type Response = S::Response
Responses given by the service.
type Error = S::Error
Errors produced by the service.
type Future = Either<S::Future, Instrumented<S::Future>>
The future response value.
fn poll_ready(&mut self, ctx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Self::Request) -> Self::Future
[src]
fn map<F, R>(self, f: F) -> Map<Self, F, R> where
F: FnMut(Self::Response) -> R,
[src]
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F, E> where
F: Fn(Self::Error) -> E,
[src]
F: Fn(Self::Error) -> E,
Auto Trait Implementations
impl<S, F> RefUnwindSafe for TracingService<S, F> where
F: RefUnwindSafe,
S: RefUnwindSafe,
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, F> Send for TracingService<S, F> where
F: Send,
S: Send,
F: Send,
S: Send,
impl<S, F> Sync for TracingService<S, F> where
F: Sync,
S: Sync,
F: Sync,
S: Sync,
impl<S, F> Unpin for TracingService<S, F> where
F: Unpin,
S: Unpin,
F: Unpin,
S: Unpin,
impl<S, F> UnwindSafe for TracingService<S, F> where
F: UnwindSafe,
S: UnwindSafe,
F: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoService<T> for T where
T: Service,
[src]
T: Service,
fn into_service(self) -> T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,