[][src]Enum actix_http::body::ResponseBody

pub enum ResponseBody<B> {
    Body(B),
    Other(Body),
}

Variants

Body(B)
Other(Body)

Methods

impl ResponseBody<Body>[src]

pub fn into_body<B>(self) -> ResponseBody<B>[src]

impl<B> ResponseBody<B>[src]

pub fn take_body(&mut self) -> ResponseBody<B>[src]

impl<B: MessageBody> ResponseBody<B>[src]

pub fn as_ref(&self) -> Option<&B>[src]

Trait Implementations

impl<B: MessageBody> MessageBody for ResponseBody<B>[src]

impl<B: MessageBody> Stream for ResponseBody<B>[src]

type Item = Bytes

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

Auto Trait Implementations

impl<B> !Send for ResponseBody<B>

impl<B> !Sync for ResponseBody<B>

impl<B> Unpin for ResponseBody<B> where
    B: Unpin

impl<B> !UnwindSafe for ResponseBody<B>

impl<B> !RefUnwindSafe for ResponseBody<B>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoStream for T where
    T: Stream
[src]

type Item = <T as Stream>::Item

type Error = <T as Stream>::Error

type Stream = T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,