Struct EnterGuard
pub struct EnterGuard<'a> { /* private fields */ }
Available on crate feature
rt only.Runtime context guard.
Returned by Runtime::enter and Handle::enter, the context guard exits the runtime context on drop.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for EnterGuard<'a>
impl<'a> !Send for EnterGuard<'a>
impl<'a> !UnwindSafe for EnterGuard<'a>
impl<'a> Freeze for EnterGuard<'a>
impl<'a> Sync for EnterGuard<'a>
impl<'a> Unpin for EnterGuard<'a>
impl<'a> UnsafeUnpin for EnterGuard<'a>
Blanket Implementations
impl<T> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/runtime/struct.EnterGuard.html