Struct chan::AsyncChannel [] [src]

pub struct AsyncChannel<T>(_);

Methods

impl<T> AsyncChannel<T>
[src]

fn new() -> AsyncChannel<T>

Trait Implementations

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

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

Formats the value using the given formatter.

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

type Item = T

fn id(&self) -> u64

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

fn unsubscribe(&self, key: u64)

impl<T> Sender for AsyncChannel<T>
[src]

fn send(&self, val: T)

fn try_send(&self, val: T) -> Result<(), T>

fn close(&self)

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

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

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

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

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

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