Trait opentelemetry::sdk::trace::TrySend [−][src]
pub trait TrySend: Sync + Send { fn try_send(&self, item: BatchMessage) -> Result<(), TraceError>; }
This is supported on crate feature
trace
only.Expand description
TrySend is an abstraction of sender that is capable to send BatchMessage with reference.
Required methods
fn try_send(&self, item: BatchMessage) -> Result<(), TraceError>
[src]
fn try_send(&self, item: BatchMessage) -> Result<(), TraceError>
[src]Try to send one batch message to worker thread.
It can fail because either the receiver has closed or the buffer is full.