pub struct EnterGuard<'a> { /* private fields */ }Expand description
The runtime Runtime::enter set on this thread, until it drops: the
free functions (spawn, …) use that runtime meanwhile.
It stays on the thread that made it.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EnterGuard<'a>
impl<'a> !Send for EnterGuard<'a>
impl<'a> !Sync for EnterGuard<'a>
impl<'a> !UnwindSafe for EnterGuard<'a>
impl<'a> Freeze for EnterGuard<'a>
impl<'a> Unpin for EnterGuard<'a>
impl<'a> UnsafeUnpin 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