Trait opentelemetry::runtime::TrySend
source · pub trait TrySend: Sync + Send {
type Message;
// Required method
fn try_send(&self, item: Self::Message) -> Result<(), TrySendError>;
}
Expand description
TrySend is an abstraction of Sender
that is capable of sending messages through a reference.
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
source§impl<T> TrySend for Sender<T>where
T: Send,
Available on crate features rt-tokio
or rt-tokio-current-thread
only.
impl<T> TrySend for Sender<T>where T: Send,
Available on crate features
rt-tokio
or rt-tokio-current-thread
only.