[][src]Struct flume::Receiver

pub struct Receiver<T: Msg> { /* fields omitted */ }

Methods

impl<T: Msg> Receiver<T>[src]

pub fn recv(&self) -> Result<T, RecvError>[src]

pub fn recv_timeout(&self, timeout: Duration) -> Result<T, RecvError>[src]

pub fn recv_deadline(&self, deadline: Instant) -> Result<T, RecvError>[src]

pub fn try_recv(&self) -> Result<T, RecvError>[src]

pub fn iter(&self) -> impl Iterator<Item = T> + '_[src]

pub fn try_iter(&self) -> impl Iterator<Item = T> + '_[src]

Trait Implementations

impl<T: Msg> Drop for Receiver<T>[src]

Auto Trait Implementations

impl<T> Sync for Receiver<T>

impl<T> Send for Receiver<T>

impl<T> Unpin for Receiver<T>

impl<T> !RefUnwindSafe for Receiver<T>

impl<T> !UnwindSafe for Receiver<T>

Blanket Implementations

impl<T> Msg for T where
    T: 'static + Send
[src]

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

impl<T, U> Into<U> for T where
    U: From<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]