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]
T: Serialize,
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<'de, T> Clone for Sender<T> where
T: Serialize + Deserialize<'de>, [src]
T: Serialize + Deserialize<'de>,
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