[][src]Struct i2cbus_api::context::MakeAddContext

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

Implementations

impl<T, A, B, C, D> MakeAddContext<T, A> 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) -> MakeAddContext<T, A>[src]

Trait Implementations

impl<'a, T, SC, A, B, C, D, E, ME, S, OB, F> MakeService<&'a SC> for MakeAddContext<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: MakeService<&'a SC, Error = E, MakeError = ME, Service = S, ReqBody = ContextualPayload<Body, D>, ResBody = OB, Future = F>,
    S: Service<Error = E, ReqBody = ContextualPayload<Body, D>, ResBody = OB> + 'static,
    ME: ErrorBound,
    E: ErrorBound,
    F: Future<Item = S, Error = ME> + Send + 'static,
    S::Future: Send,
    OB: Payload
[src]

type ReqBody = Body

The Payload body of the http::Request.

type ResBody = OB

The Payload body of the http::Response.

type Error = E

The error type that can be returned by Services.

type MakeError = ME

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

type Service = AddContext<S, A>

The resolved Service from new_service().

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

The future returned from new_service of a Service.

Auto Trait Implementations

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

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

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

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

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