🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

Type Alias InstrumentedService

Source
pub type InstrumentedService<S, R> = Service<Service<S, R>>;

Aliased Type§

struct InstrumentedService<S, R> { /* private fields */ }

Implementations

Source§

impl<S> Service<S>

Source

pub fn new(inner: S, span: Span) -> Self

Trait Implementations

Source§

impl<S> Clone for Service<S>
where S: Clone,

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<S: Debug> Debug for Service<S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

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

Source§

type Response = <S as Service<R>>::Response

Responses given by the service.
Source§

type Error = <S as Service<R>>::Error

Errors produced by the service.
Source§

type Future = <S as Service<R>>::Future

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, request: R) -> Self::Future

Process the request and return the response asynchronously. Read more