Struct spmc::Receiver [] [src]

pub struct Receiver<T: Send> {
    // some 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.

Methods

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

fn try_recv(&self) -> Result<T, TryRecvError>

Try to receive a message, without blocking.

fn recv(&self) -> Result<T, RecvError>

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

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

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

fn clone(&self) -> Receiver<T>

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more