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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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
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 = Sleep
type Delay = Sleep
A future, which resolves after a previously specified amount of time. The output type is
not important.
Source§impl TraceRuntime for TokioCurrentThread
Available on crate feature trace
only.
impl TraceRuntime for TokioCurrentThread
Available on crate feature
trace
only.Source§type Receiver = ReceiverStream<BatchMessage>
type Receiver = ReceiverStream<BatchMessage>
A future stream to receive the batch messages from channels.
Source§type Sender = Sender<BatchMessage>
type Sender = Sender<BatchMessage>
A batch messages sender that could be sent across thread safely.
Auto Trait Implementations§
impl Freeze for TokioCurrentThread
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.