[][src]Struct spmc::Receiver

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

The receiving side of a SPMC channel.

There may be many of these, and the Receiver itself is Sync, so it can be placed in an Arc, or cloned itself.


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

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

Try to receive a message, without blocking.

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

Receive a message from the channel.

If no message is available, this will block the current thread until a message is sent.

Trait Implementations

impl<T: Send> Clone for Receiver<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Send> Send for Receiver<T>[src]

impl<T: Send> Sync for Receiver<T>[src]

Auto Trait Implementations

impl<T> Unpin for Receiver<T>

impl<T> !RefUnwindSafe for Receiver<T>

impl<T> !UnwindSafe for Receiver<T>

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Borrow<T> for T where
    T: ?Sized

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