Struct chan::AsyncReceiver [] [src]

pub struct AsyncReceiver<T>(_);

Trait Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T> Clone for AsyncReceiver<T>
[src]

fn clone(&self) -> AsyncReceiver<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

impl<T> Drop for AsyncReceiver<T>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more

impl<T> Channel for AsyncReceiver<T>
[src]

type Item = T

fn id(&self) -> ChannelId

fn subscribe(&self, id: u64, mutex: Arc<Mutex<()>>, condvar: Arc<Condvar>) -> u64

fn unsubscribe(&self, key: u64)

impl<T> Receiver for AsyncReceiver<T>
[src]

fn recv(&self) -> Option<T>

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

fn try_recv_from(&self, from: u64) -> Result<Option<T>, ()>

fn iter(self) -> Iter<Self> where Self: Sized