[−][src]Struct swagger::context::ContextualPayload
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]
P: Payload,
Ctx: Send + 'static,
fn clone(&self) -> ContextualPayload<P, Ctx>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<P: Debug, Ctx: Debug> Debug for ContextualPayload<P, Ctx> where
P: Payload,
Ctx: Send + 'static,
[src]
P: Payload,
Ctx: Send + 'static,
impl<P, Ctx> Payload for ContextualPayload<P, Ctx> where
P: Payload,
Ctx: Send + 'static,
[src]
P: Payload,
Ctx: Send + 'static,
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.
fn poll_data(&mut self) -> Poll<Option<Self::Data>, Self::Error>
[src]
fn poll_trailers(
&mut self
) -> Result<Async<Option<HeaderMap<HeaderValue>>>, Self::Error>
[src]
&mut self
) -> Result<Async<Option<HeaderMap<HeaderValue>>>, Self::Error>
fn is_end_stream(&self) -> bool
[src]
fn content_length(&self) -> Option<u64>
[src]
Auto Trait Implementations
impl<P, Ctx> RefUnwindSafe for ContextualPayload<P, Ctx> where
Ctx: RefUnwindSafe,
P: RefUnwindSafe,
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,
Ctx: Sync,
P: Sync,
impl<P, Ctx> Unpin for ContextualPayload<P, Ctx> where
Ctx: Unpin,
P: Unpin,
Ctx: Unpin,
P: Unpin,
impl<P, Ctx> UnwindSafe for ContextualPayload<P, Ctx> where
Ctx: UnwindSafe,
P: UnwindSafe,
Ctx: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,