pub struct Service<S: Clone> { /* private fields */ }
Expand description
Middleware Service
that propagates the opentelemetry trace header, configures a span for
the request, and records any exceptions.
Trait Implementations§
Source§impl<B, ResBody, S> Service<Request<B>> for Service<S>
impl<B, ResBody, S> Service<Request<B>> for Service<S>
Source§type Future = Pin<Box<dyn Future<Output = Result<<Service<S> as Service<Request<B>>>::Response, <Service<S> as Service<Request<B>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Service<S> as Service<Request<B>>>::Response, <Service<S> as Service<Request<B>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<S> Freeze for Service<S>where
S: Freeze,
impl<S> !RefUnwindSafe for Service<S>
impl<S> Send for Service<S>where
S: Send,
impl<S> Sync for Service<S>where
S: Sync,
impl<S> Unpin for Service<S>where
S: Unpin,
impl<S> !UnwindSafe for Service<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more