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]
impl<T> Channel for AsyncChannel<T>
[src]
type Item = T
fn send(&self, val: T)
fn try_send(&self, val: T) -> Result<(), T>
fn recv(&self) -> Option<T>
fn try_recv(&self) -> Result<Option<T>, ()>
fn close(&self)
fn subscribe(&self, condvar: Arc<Condvar>) -> Uuid
fn unsubscribe(&self, key: &Uuid)
fn clone_chan(&self) -> AsyncChannel<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