Struct spmc::Receiver [] [src]

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.

Methods

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

Try to receive a message, without blocking.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more