[][src]Struct swagger::context::ContextualPayload

pub struct ContextualPayload<P, Ctx> where
    P: Payload,
    Ctx: Send + 'static, 
{ pub inner: P, pub context: Ctx, }

This represents context provided as part of the request or the response

Fields

inner: P

The inner payload for this request/response

context: Ctx

Request or Response Context

Trait Implementations

impl<P: Clone, Ctx: Clone> Clone for ContextualPayload<P, Ctx> where
    P: Payload,
    Ctx: Send + 'static, 
[src]

impl<P: Debug, Ctx: Debug> Debug for ContextualPayload<P, Ctx> where
    P: Payload,
    Ctx: Send + 'static, 
[src]

impl<P, Ctx> Payload for ContextualPayload<P, Ctx> where
    P: Payload,
    Ctx: Send + 'static, 
[src]

type Data = P::Data

A buffer of bytes representing a single chunk of a body.

type Error = P::Error

The error type of this stream.

Auto Trait Implementations

impl<P, Ctx> RefUnwindSafe for ContextualPayload<P, Ctx> where
    Ctx: RefUnwindSafe,
    P: RefUnwindSafe

impl<P, Ctx> Send for ContextualPayload<P, Ctx>

impl<P, Ctx> Sync for ContextualPayload<P, Ctx> where
    Ctx: Sync,
    P: Sync

impl<P, Ctx> Unpin for ContextualPayload<P, Ctx> where
    Ctx: Unpin,
    P: Unpin

impl<P, Ctx> UnwindSafe for ContextualPayload<P, Ctx> where
    Ctx: UnwindSafe,
    P: 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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.