[][src]Trait libhoney::Sender

pub trait Sender {
    fn send(&mut self, ev: Event);
fn start(&mut self);
fn stop(&mut self) -> Result<()>;
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

fn send(&mut self, ev: Event)

send queues up an event to be sent

fn start(&mut self)

start initializes any background processes necessary to send events

fn stop(&mut self) -> Result<()>

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

fn responses(&self) -> Receiver<Response>

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]

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

responses provides access to the receiver

Loading content...