Struct opentelemetry::runtime::AsyncStd
source · pub struct AsyncStd;
Available on crate feature
rt-async-std
only.Expand description
Runtime implementation, which works with async-std.
Trait Implementations§
source§impl Runtime for AsyncStd
impl Runtime for AsyncStd
§type Interval = Interval
type Interval = Interval
A future stream, which returns items in a previously specified interval. The item type is
not important.
§type Delay = Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>
type Delay = Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>
A future, which resolves after a previously specified amount of time. The output type is
not important.
source§fn interval(&self, duration: Duration) -> <AsyncStd as Runtime>::Interval
fn interval(&self, duration: Duration) -> <AsyncStd as Runtime>::Interval
Create a [Stream][futures_util::stream::Stream], which returns a new item every
Duration.
source§impl TraceRuntime for AsyncStd
impl TraceRuntime for AsyncStd
§type Receiver = Receiver<BatchMessage>
type Receiver = Receiver<BatchMessage>
A future stream to receive the batch messages from channels.
§type Sender = Sender<BatchMessage>
type Sender = Sender<BatchMessage>
A batch messages sender that could be sent across thread safely.
source§fn batch_message_channel(
&self,
capacity: usize
) -> (<AsyncStd as TraceRuntime>::Sender, <AsyncStd as TraceRuntime>::Receiver)
fn batch_message_channel( &self, capacity: usize ) -> (<AsyncStd as TraceRuntime>::Sender, <AsyncStd as TraceRuntime>::Receiver)
Return the sender and receiver used to send batch message between tasks.