Struct chan::AsyncSender [] [src]

pub struct AsyncSender<T>(_);

Trait Implementations

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

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

Formats the value using the given formatter.

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

fn clone(&self) -> AsyncSender<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 AsyncSender<T>
[src]

fn drop(&mut self)

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

impl<T> Channel for AsyncSender<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> Sender for AsyncSender<T>
[src]

fn send(&self, val: T)

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

fn try_send_from(&self, val: T, from: u64) -> Result<(), T>