Struct swagger::add_context::AddContextMakeService
source · [−]pub struct AddContextMakeService<T, C> where
C: Default + Push<XSpanIdString> + 'static + Send,
C::Result: Send + 'static, { /* private fields */ }Expand description
Middleware wrapper service, that should be used as the outermost layer in a
stack of hyper services. Adds a context to a plain hyper::Request that can be
used by subsequent layers in the stack.
Implementations
sourceimpl<T, C> AddContextMakeService<T, C> where
C: Default + Push<XSpanIdString> + 'static + Send,
C::Result: Send + 'static,
impl<T, C> AddContextMakeService<T, C> where
C: Default + Push<XSpanIdString> + 'static + Send,
C::Result: Send + 'static,
Trait Implementations
sourceimpl<T: Debug, C: Debug> Debug for AddContextMakeService<T, C> where
C: Default + Push<XSpanIdString> + 'static + Send,
C::Result: Send + 'static,
impl<T: Debug, C: Debug> Debug for AddContextMakeService<T, C> where
C: Default + Push<XSpanIdString> + 'static + Send,
C::Result: Send + 'static,
sourceimpl<Inner, Context, Target> Service<Target> for AddContextMakeService<Inner, Context> where
Context: Default + Push<XSpanIdString> + 'static + Send,
Context::Result: Send + 'static,
Inner: Service<Target>,
Inner::Future: Send + 'static,
impl<Inner, Context, Target> Service<Target> for AddContextMakeService<Inner, Context> where
Context: Default + Push<XSpanIdString> + 'static + Send,
Context::Result: Send + 'static,
Inner: Service<Target>,
Inner::Future: Send + 'static,
type Error = <Inner as Service<Target>>::Error
type Error = <Inner as Service<Target>>::Error
Errors produced by the service.
type Response = AddContextService<<Inner as Service<Target>>::Response, Context>
type Response = AddContextService<<Inner as Service<Target>>::Response, Context>
Responses given by the service.
type Future = Pin<Box<dyn Future<Output = Result<<AddContextMakeService<Inner, Context> as Service<Target>>::Response, <AddContextMakeService<Inner, Context> as Service<Target>>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<AddContextMakeService<Inner, Context> as Service<Target>>::Response, <AddContextMakeService<Inner, Context> as Service<Target>>::Error>> + Send + 'static, Global>>
The future response value.
Auto Trait Implementations
impl<T, C> RefUnwindSafe for AddContextMakeService<T, C> where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for AddContextMakeService<T, C> where
T: Send,
impl<T, C> Sync for AddContextMakeService<T, C> where
C: Sync,
T: Sync,
impl<T, C> Unpin for AddContextMakeService<T, C> where
C: Unpin,
T: Unpin,
impl<T, C> UnwindSafe for AddContextMakeService<T, C> where
C: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more