Struct opentelemetry_sdk::runtime::Tokio
source · pub struct Tokio;
Available on crate feature
rt-tokio
only.Expand description
Runtime implementation, which works with Tokio’s multi thread runtime.
Trait Implementations§
source§impl Runtime for Tokio
impl Runtime for Tokio
source§type Interval = IntervalStream
type Interval = IntervalStream
A future stream, which returns items in a previously specified interval. The item type is
not important.
source§type Delay = Pin<Box<Sleep>>
type Delay = Pin<Box<Sleep>>
A future, which resolves after a previously specified amount of time. The output type is
not important.
source§fn interval(&self, duration: Duration) -> Self::Interval
fn interval(&self, duration: Duration) -> Self::Interval
Create a futures_util::stream::Stream, which returns a new item every
std::time::Duration.
Auto Trait Implementations§
impl Freeze for Tokio
impl RefUnwindSafe for Tokio
impl Send for Tokio
impl Sync for Tokio
impl Unpin for Tokio
impl UnwindSafe for Tokio
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)