pub trait TrySend: Sync + Send {
    // Required method
    fn try_send(&self, item: BatchMessage) -> Result<(), TraceError>;
}
Expand description

TrySend is an abstraction of sender that is capable to send BatchMessage with reference.

Required Methods§

source

fn try_send(&self, item: BatchMessage) -> Result<(), TraceError>

Try to send one batch message to worker thread.

It can fail because either the receiver has closed or the buffer is full.

Implementations on Foreign Types§

source§

impl TrySend for Sender<BatchMessage>

Implementors§