Trait opentelemetry::runtime::RuntimeChannel
source · pub trait RuntimeChannel<T>: Runtimewhere
T: Debug + Send,{
type Receiver: Stream<Item = T> + Send;
type Sender: TrySend<Message = T> + Debug;
// Required method
fn batch_message_channel(
&self,
capacity: usize
) -> (Self::Sender, Self::Receiver);
}
Expand description
Required Associated Types§
Required Methods§
sourcefn batch_message_channel(
&self,
capacity: usize
) -> (Self::Sender, Self::Receiver)
fn batch_message_channel( &self, capacity: usize ) -> (Self::Sender, Self::Receiver)
Return the sender and receiver used to send batch messages.
Implementors§
source§impl<T> RuntimeChannel<T> for AsyncStdwhere
T: Debug + Send,
Available on crate feature rt-async-std
only.
impl<T> RuntimeChannel<T> for AsyncStdwhere T: Debug + Send,
Available on crate feature
rt-async-std
only.source§impl<T> RuntimeChannel<T> for Tokiowhere
T: Debug + Send,
Available on crate feature rt-tokio
only.
impl<T> RuntimeChannel<T> for Tokiowhere T: Debug + Send,
Available on crate feature
rt-tokio
only.source§impl<T> RuntimeChannel<T> for TokioCurrentThreadwhere
T: Debug + Send,
Available on crate feature rt-tokio-current-thread
only.
impl<T> RuntimeChannel<T> for TokioCurrentThreadwhere T: Debug + Send,
Available on crate feature
rt-tokio-current-thread
only.