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, Global>>
type Delay = Pin<Box<dyn Future<Output = ()> + Send, 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<T> RuntimeChannel<T> for AsyncStdwhere
T: Debug + Send,
impl<T> RuntimeChannel<T> for AsyncStdwhere T: Debug + Send,
source§fn batch_message_channel(
&self,
capacity: usize
) -> (<AsyncStd as RuntimeChannel<T>>::Sender, <AsyncStd as RuntimeChannel<T>>::Receiver)
fn batch_message_channel( &self, capacity: usize ) -> (<AsyncStd as RuntimeChannel<T>>::Sender, <AsyncStd as RuntimeChannel<T>>::Receiver)
Return the sender and receiver used to send batch messages.
Auto Trait Implementations§
impl RefUnwindSafe for AsyncStd
impl Send for AsyncStd
impl Sync for AsyncStd
impl Unpin for AsyncStd
impl UnwindSafe for AsyncStd
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more