pub struct EnterGuard<'a> { /* private fields */ }
Available on crate feature
rt
only.Expand description
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> Freeze for EnterGuard<'a>
impl<'a> !RefUnwindSafe for EnterGuard<'a>
impl<'a> !Send for EnterGuard<'a>
impl<'a> Sync for EnterGuard<'a>
impl<'a> Unpin for EnterGuard<'a>
impl<'a> !UnwindSafe for EnterGuard<'a>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes