Struct tic::Sender
[−]
[src]
pub struct Sender<T> { /* fields omitted */ }
a Sender is used to push Sample
s to the Receiver
it is clonable for sharing between threads
Methods
impl<T: Hash + Eq + Send + Clone> Sender<T>
[src]
fn send(&mut self, sample: Sample<T>) -> Result<(), ()>
a function to send a Sample
to the Receiver
fn try_send(&mut self, sample: Sample<T>) -> Result<(), ()>
a function to try to send a Sample
to the Receiver
Trait Implementations
impl<T: Clone> Clone for Sender<T>
[src]
fn clone(&self) -> Sender<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