Trait vector::trace::InstrumentableService

pub trait InstrumentableService<Request>: Sized + Service<Request> {
    // Provided methods
    fn instrument<G>(self, svc_span: G) -> Service<Service<Self, Request>>
       where G: GetSpan<Self>,
             Request: Debug { ... }
    fn trace_requests<G>(self, get_span: G) -> Service<Self, Request, G>
       where G: GetSpan<Request> + Clone { ... }
    fn trace_service<G>(self, get_span: G) -> Service<Self>
       where G: GetSpan<Self> { ... }
}

Provided Methods§

fn instrument<G>(self, svc_span: G) -> Service<Service<Self, Request>>
where G: GetSpan<Self>, Request: Debug,

fn trace_requests<G>(self, get_span: G) -> Service<Self, Request, G>
where G: GetSpan<Request> + Clone,

fn trace_service<G>(self, get_span: G) -> Service<Self>
where G: GetSpan<Self>,

Object Safety§

This trait is not object safe.

Implementors§

§

impl<S, R> InstrumentableService<R> for S
where S: Service<R>,