pub trait InstrumentableService<Request>where
Self: Service<Request> + Sized,{
// Provided methods
fn instrument<G>(self, svc_span: G) -> InstrumentedService<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) -> InstrumentedService<Self, Request>
fn trace_requests<G>(self, get_span: G) -> Service<Self, Request, G>
fn trace_service<G>(self, get_span: G) -> Service<Self>where
G: GetSpan<Self>,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.