Struct hopper::Sender
[−]
[src]
pub struct Sender<T> { /* fields omitted */ }
The 'send' side of hopper, similar to
std::sync::mpsc::Sender
.
Methods
impl<T> Sender<T> where T: Serialize
[src]
fn send(&mut self, event: T)
send writes data out in chunks, like so:
u32: payload_size [u8] payload
fn name(&self) -> &str
Return the sender's name
Trait Implementations
impl<T: Debug> Debug for Sender<T>
[src]
impl<T> Clone for Sender<T> where T: Serialize + Deserialize
[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