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§
Trait Implementations§
source§impl<T: Debug, C> Debug for AddContextMakeService<T, C>where
C: Default + Push<XSpanIdString> + 'static + Send + Debug,
C::Result: Send + 'static,
impl<T: Debug, C> Debug for AddContextMakeService<T, C>where C: Default + Push<XSpanIdString> + 'static + Send + Debug, C::Result: Send + 'static,
source§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,
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 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, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<AddContextMakeService<Inner, Context> as Service<Target>>::Response, <AddContextMakeService<Inner, Context> as Service<Target>>::Error>> + Send, 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§
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