[][src]Enum actix_web::dev::Payload

pub enum Payload<S = Box<dyn Stream<Item = Bytes, Error = PayloadError> + 'static>> {
    None,
    H1(Payload),
    H2(Payload),
    Stream(S),
}

Type represent streaming payload

Variants

None
Stream(S)

Methods

impl<S> Payload<S>[src]

pub fn take(&mut self) -> Payload<S>[src]

Takes current payload and replaces it with None value

Trait Implementations

impl<S> Stream for Payload<S> where
    S: Stream<Item = Bytes, Error = PayloadError>, 
[src]

type Item = Bytes

The type of item this stream will yield on success.

type Error = PayloadError

The type of error this stream may generate.

impl<S> From<Payload> for Payload<S>[src]

impl<S> From<Payload> for Payload<S>[src]

impl From<Box<dyn Stream<Item = Bytes, Error = PayloadError> + 'static>> for Payload<Box<dyn Stream<Item = Bytes, Error = PayloadError> + 'static>>[src]

impl<S> From<RecvStream> for Payload<S>[src]

Auto Trait Implementations

impl<S = Box<dyn Stream<Item = Bytes, Error = PayloadError> + 'static>> !Send for Payload<S>

impl<S> Unpin for Payload<S> where
    S: Unpin

impl<S = Box<dyn Stream<Item = Bytes, Error = PayloadError> + 'static>> !Sync for Payload<S>

impl<S = Box<dyn Stream<Item = Bytes, Error = PayloadError> + 'static>> !UnwindSafe for Payload<S>

impl<S = Box<dyn Stream<Item = Bytes, Error = PayloadError> + 'static>> !RefUnwindSafe for Payload<S>

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

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

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

impl<T> Erased for T

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>,