[][src]Struct actix_tracing::TracingService

pub struct TracingService<S, F> { /* fields omitted */ }

A Service implementation that automatically enters/exits tracing spans for the wrapped inner service.

Methods

impl<S, F> TracingService<S, F>[src]

pub fn new(inner: S, make_span: F) -> Self[src]

Trait Implementations

impl<S: Clone, F: Clone> Clone for TracingService<S, F>[src]

impl<S, F> Service for TracingService<S, F> where
    S: Service,
    F: Fn(&S::Request) -> Option<Span>, 
[src]

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.

Auto Trait Implementations

impl<S, F> RefUnwindSafe for TracingService<S, F> where
    F: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, F> Send for TracingService<S, F> where
    F: Send,
    S: Send

impl<S, F> Sync for TracingService<S, F> where
    F: Sync,
    S: Sync

impl<S, F> Unpin for TracingService<S, F> where
    F: Unpin,
    S: Unpin

impl<S, F> UnwindSafe for TracingService<S, F> where
    F: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoService<T> for T where
    T: Service
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]