[][src]Trait libhoney::Sender

pub trait Sender {
    pub fn send(&mut self, ev: Event);
pub fn start(&mut self);
pub fn stop(&mut self) -> Result<()>;
pub fn responses(&self) -> Receiver<Response>; }

Sender is responsible for handling events after Send() is called. Implementations of send() must be safe for concurrent calls.

Required methods

pub fn send(&mut self, ev: Event)[src]

send queues up an event to be sent

pub fn start(&mut self)[src]

start initializes any background processes necessary to send events

pub fn stop(&mut self) -> Result<()>[src]

stop flushes any pending queues and blocks until everything in flight has been sent

pub fn responses(&self) -> Receiver<Response>[src]

responses returns a channel that will contain a single Response for each Event added. Note that they may not be in the same order as they came in

Loading content...

Implementors

impl Sender for TransmissionMock[src]

impl Sender for Transmission[src]

pub fn responses(&self) -> ChannelReceiver<Response>[src]

responses provides access to the receiver

Loading content...