Struct swagger::add_context::AddContextMakeService [−][src]
pub struct AddContextMakeService<T, C> where
C: Default + Push<XSpanIdString> + 'static + Send,
C::Result: Send + 'static, { /* fields omitted */ }
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
impl<T, C> AddContextMakeService<T, C> where
C: Default + Push<XSpanIdString> + 'static + Send,
C::Result: Send + 'static,
[src]
impl<T, C> AddContextMakeService<T, C> where
C: Default + Push<XSpanIdString> + 'static + Send,
C::Result: Send + 'static,
[src]Trait Implementations
type Response = AddContextService<Inner::Response, Context>
type Response = AddContextService<Inner::Response, Context>
Responses given by the service.
Returns Poll::Ready(Ok(()))
when the service is able to process requests. Read more
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,