[−][src]Struct swagger::add_context::AddContextService
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. The AddContextService struct should
not usually be used directly - when constructing a hyper stack use
AddContextMakeService, which will create AddContextService instances as needed.
Implementations
impl<T, C> AddContextService<T, C> where
C: Default + Push<XSpanIdString>,
C::Result: Send + 'static, [src]
C: Default + Push<XSpanIdString>,
C::Result: Send + 'static,
Trait Implementations
impl<T: Debug, C: Debug> Debug for AddContextService<T, C> where
C: Default + Push<XSpanIdString>,
C::Result: Send + 'static, [src]
C: Default + Push<XSpanIdString>,
C::Result: Send + 'static,
impl<Inner, Context, Body> Service<Request<Body>> for AddContextService<Inner, Context> where
Context: Default + Push<XSpanIdString> + Send + 'static,
Context::Result: Send + 'static,
Inner: Service<(Request<Body>, Context::Result)>, [src]
Context: Default + Push<XSpanIdString> + Send + 'static,
Context::Result: Send + 'static,
Inner: Service<(Request<Body>, Context::Result)>,
type Response = Inner::Response
Responses given by the service.
type Error = Inner::Error
Errors produced by the service.
type Future = Inner::Future
The future response value.
fn poll_ready(
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>[src]
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn call(&mut self, req: Request<Body>) -> Self::Future[src]
Auto Trait Implementations
impl<T, C> RefUnwindSafe for AddContextService<T, C> where
C: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for AddContextService<T, C> where
C: Send,
T: Send,
C: Send,
T: Send,
impl<T, C> Sync for AddContextService<T, C> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
impl<T, C> Unpin for AddContextService<T, C> where
C: Unpin,
T: Unpin,
C: Unpin,
T: Unpin,
impl<T, C> UnwindSafe for AddContextService<T, C> where
C: UnwindSafe,
T: UnwindSafe,
C: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, S, F, Target, ReqBody, ResBody, Error, MakeError> CompositedMakeService<Target, ReqBody, ResBody, Error, MakeError> for T where
F: Future<Output = Result<S, MakeError>> + Send + 'static,
S: CompositedService<ReqBody, ResBody, Error> + Send + 'static,
T: Service<Target, Response = S, Future = F, Error = MakeError> + Send,
Target: Send, [src]
F: Future<Output = Result<S, MakeError>> + Send + 'static,
S: CompositedService<ReqBody, ResBody, Error> + Send + 'static,
T: Service<Target, Response = S, Future = F, Error = MakeError> + Send,
Target: Send,
fn poll_ready(&mut Self, &mut Context<'_>) -> Poll<Result<(), MakeError>>[src]
fn call(
&mut Self,
Target
) -> Pin<Box<dyn Future<Output = Result<Box<dyn CompositedService<ReqBody, ResBody, Error> + 'static + Send>, MakeError>> + 'static + Send>>[src]
&mut Self,
Target
) -> Pin<Box<dyn Future<Output = Result<Box<dyn CompositedService<ReqBody, ResBody, Error> + 'static + Send>, MakeError>> + 'static + Send>>
impl<T, ReqBody, ResBody, Error> CompositedService<ReqBody, ResBody, Error> for T where
T: Service<Request<ReqBody>, Response = Response<ResBody>, Error = Error>,
<T as Service<Request<ReqBody>>>::Future: Send,
<T as Service<Request<ReqBody>>>::Future: 'static, [src]
T: Service<Request<ReqBody>, Response = Response<ResBody>, Error = Error>,
<T as Service<Request<ReqBody>>>::Future: Send,
<T as Service<Request<ReqBody>>>::Future: 'static,
fn poll_ready(&mut Self, &mut Context<'_>) -> Poll<Result<(), Error>>[src]
fn call(
&mut Self,
Request<ReqBody>
) -> Pin<Box<dyn Future<Output = Result<Response<ResBody>, Error>> + 'static + Send>>[src]
&mut Self,
Request<ReqBody>
) -> Pin<Box<dyn Future<Output = Result<Response<ResBody>, Error>> + 'static + Send>>
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized, [src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,