[][src]Struct swagger::add_context::AddContextMakeService

pub struct AddContextMakeService<T, C> where
    C: Default + Push<XSpanIdString> + 'static + Send,
    C::Result: Send + 'static, 
{ /* fields omitted */ }

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.

Methods

impl<T, C> AddContextMakeService<T, C> where
    C: Default + Push<XSpanIdString> + 'static + Send,
    C::Result: Send + 'static, 
[src]

pub fn new(inner: T) -> Self[src]

Create a new AddContextMakeService struct wrapping a value

Trait Implementations

impl<T: Debug, C: Debug> Debug for AddContextMakeService<T, C> where
    C: Default + Push<XSpanIdString> + 'static + Send,
    C::Result: Send + 'static, 
[src]

impl<'a, T, SC, RC, E, ME, S, F> MakeService<&'a SC> for AddContextMakeService<T, RC> where
    RC: Default + Push<XSpanIdString> + 'static + Send,
    RC::Result: Send + 'static,
    T: MakeService<&'a SC, Service = S, ReqBody = ContextualPayload<Body, RC::Result>, ResBody = Body, Error = E, MakeError = ME, Future = F>,
    S: Service<ReqBody = ContextualPayload<Body, RC::Result>, ResBody = Body, Error = E> + 'static,
    ME: ErrorBound,
    E: ErrorBound,
    F: Future<Item = S, Error = ME> + Send + 'static,
    S::Future: Send
[src]

type ReqBody = Body

The Payload body of the http::Request.

type ResBody = Body

The Payload body of the http::Response.

type Error = E

The error type that can be returned by Services.

type Service = AddContextService<S, RC>

The resolved Service from new_service().

type MakeError = ME

The error type that can be returned when creating a new Service.

type Future = Box<dyn Future<Item = Self::Service, Error = ME> + Send>

The future returned from new_service of a Service.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<N, Ctx> MakeService<Ctx> for N where
    N: NewService
[src]

type ReqBody = <N as NewService>::ReqBody

The Payload body of the http::Request.

type ResBody = <N as NewService>::ResBody

The Payload body of the http::Response.

type Error = <N as NewService>::Error

The error type that can be returned by Services.

type Service = <N as NewService>::Service

The resolved Service from new_service().

type Future = <N as NewService>::Future

The future returned from new_service of a Service.

type MakeError = <N as NewService>::InitError

The error type that can be returned when creating a new Service.

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,