[][src]Struct futures::sync::mpsc::UnboundedReceiver

pub struct UnboundedReceiver<T>(_);

The receiving end of a channel which implements the Stream trait.

This is a concrete implementation of a stream which can be used to represent a stream of values being computed elsewhere. This is created by the unbounded method.

Methods

impl<T> UnboundedReceiver<T>[src]

pub fn close(&mut self)[src]

Closes the receiving half

This prevents any further messages from being sent on the channel while still enabling the receiver to drain messages that are buffered.

Trait Implementations

impl<T> Stream for UnboundedReceiver<T>[src]

type Item = T

The type of item this stream will yield on success.

type Error = ()

The type of error this stream may generate.

impl<T: Debug> Debug for UnboundedReceiver<T>[src]

Auto Trait Implementations

impl<T> Unpin for UnboundedReceiver<T>

impl<T> Send for UnboundedReceiver<T> where
    T: Send

impl<T> Sync for UnboundedReceiver<T> where
    T: Send

impl<T> !UnwindSafe for UnboundedReceiver<T>

impl<T> !RefUnwindSafe for UnboundedReceiver<T>

Blanket Implementations

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

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

type Error = !

The type returned in the event of a conversion error.

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

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]