Struct opentelemetry_sdk::runtime::TokioCurrentThread
source · pub struct TokioCurrentThread;
Available on crate feature
rt-tokio-current-thread
only.Expand description
Runtime implementation, which works with Tokio’s current thread runtime.
Trait Implementations§
source§impl Clone for TokioCurrentThread
impl Clone for TokioCurrentThread
source§fn clone(&self) -> TokioCurrentThread
fn clone(&self) -> TokioCurrentThread
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TokioCurrentThread
impl Debug for TokioCurrentThread
source§impl Runtime for TokioCurrentThread
impl Runtime for TokioCurrentThread
§type Interval = IntervalStream
type Interval = IntervalStream
A future stream, which returns items in a previously specified interval. The item type is
not important.
§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.
source§impl RuntimeChannel for TokioCurrentThread
impl RuntimeChannel for TokioCurrentThread
Auto Trait Implementations§
impl RefUnwindSafe for TokioCurrentThread
impl Send for TokioCurrentThread
impl Sync for TokioCurrentThread
impl Unpin for TokioCurrentThread
impl UnwindSafe for TokioCurrentThread
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