[][src]Struct mbus_api::context::AddContext

pub struct AddContext<T, A, B, C, D> where
    A: Default + Push<XSpanIdString, Result = B>,
    B: Push<Option<AuthData>, Result = C>,
    C: Push<Option<Authorization>, Result = D>, 
{ /* fields omitted */ }

Middleware to add context data from the request

Implementations

impl<T, A, B, C, D> AddContext<T, A, B, C, D> where
    A: Default + Push<XSpanIdString, Result = B>,
    B: Push<Option<AuthData>, Result = C>,
    C: Push<Option<Authorization>, Result = D>, 
[src]

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

Trait Implementations

impl<T, A, B, C, D, ReqBody> Service<Request<ReqBody>> for AddContext<T, A, B, C, D> where
    A: Default + Push<XSpanIdString, Result = B>,
    B: Push<Option<AuthData>, Result = C>,
    C: Push<Option<Authorization>, Result = D>,
    D: Send + 'static,
    T: Service<(Request<ReqBody>, D)>, 
[src]

type Error = T::Error

Errors produced by the service.

type Future = T::Future

The future response value.

type Response = T::Response

Responses given by the service.

Auto Trait Implementations

impl<T, A, B, C, D> RefUnwindSafe for AddContext<T, A, B, C, D> where
    A: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, A, B, C, D> Send for AddContext<T, A, B, C, D> where
    A: Send,
    T: Send

impl<T, A, B, C, D> Sync for AddContext<T, A, B, C, D> where
    A: Sync,
    T: Sync

impl<T, A, B, C, D> Unpin for AddContext<T, A, B, C, D> where
    A: Unpin,
    T: Unpin

impl<T, A, B, C, D> UnwindSafe for AddContext<T, A, B, C, D> where
    A: 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<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>,