[][src]Struct i2cbus_api::context::AddContext

pub struct AddContext<T, A> { /* fields omitted */ }

Middleware to extract authentication data from request

Implementations

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

pub fn new(inner: T) -> AddContext<T, A>[src]

Trait Implementations

impl<T, A, B, C, D> Service for AddContext<T, A> where
    A: Default + Push<XSpanIdString, Result = B>,
    B: Push<Option<AuthData>, Result = C>,
    C: Push<Option<Authorization>, Result = D>,
    D: Send + 'static,
    T: Service<ReqBody = ContextualPayload<Body, D>>,
    T::Future: Future<Item = Response<T::ResBody>, Error = T::Error> + Send + 'static, 
[src]

type ReqBody = Body

The Payload body of the http::Request.

type ResBody = T::ResBody

The Payload body of the http::Response.

type Error = T::Error

The error type that can occur within this Service. Read more

type Future = Box<dyn Future<Item = Response<T::ResBody>, Error = T::Error> + Send + 'static>

The Future returned by this Service.

Auto Trait Implementations

impl<T, A> RefUnwindSafe for AddContext<T, A> where
    A: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, A> Send for AddContext<T, A> where
    A: Send,
    T: Send

impl<T, A> Sync for AddContext<T, A> where
    A: Sync,
    T: Sync

impl<T, A> Unpin for AddContext<T, A> where
    A: Unpin,
    T: Unpin

impl<T, A> UnwindSafe for AddContext<T, A> 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.