pub struct EnterGuard<'a> { /* 私有字段 */ }展开描述
运行时上下文守卫。
由 Runtime::enter 和 Handle::enter 返回,上下文守卫在 drop 时退出运行时上下文。
trait 实现§
自动 trait 实现§
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> UnsafeUnpin for EnterGuard<'a>
impl<'a> !UnwindSafe for EnterGuard<'a>
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息