[][src]Struct tokio_proto::streaming::Body

pub struct Body<T, E> { /* fields omitted */ }

Body stream

Methods

impl<T, E> Body<T, E>[src]

pub fn empty() -> Body<T, E>[src]

Return an empty body stream

pub fn pair() -> (Sender<Result<T, E>>, Body<T, E>)[src]

Return a body stream with an associated sender half

Trait Implementations

impl<T, E> Debug for Body<T, E>[src]

impl<T, E> From<Receiver<Result<T, E>>> for Body<T, E>[src]

impl<T, E> From<T> for Body<T, E>[src]

impl<T, E> Stream for Body<T, E>[src]

type Item = T

The type of item this stream will yield on success.

type Error = E

The type of error this stream may generate.

Auto Trait Implementations

impl<T, E> !RefUnwindSafe for Body<T, E>

impl<T, E> Send for Body<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for Body<T, E> where
    E: Send,
    T: Send + Sync

impl<T, E> Unpin for Body<T, E> where
    T: Unpin

impl<T, E> !UnwindSafe for Body<T, E>

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<!> for T[src]

impl<T> From<T> for T[src]

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

impl<T> StreamExt for T where
    T: Stream + ?Sized
[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.