pub struct InstallGuard { /* private fields */ }Expand description
RAII guard from install; restores the previous token on drop.
The marker intentionally makes this guard !Send: installation and
restoration both access thread-local state and therefore must occur on the
same executor thread.
Trait Implementations§
Source§impl Drop for InstallGuard
impl Drop for InstallGuard
Auto Trait Implementations§
impl !Send for InstallGuard
impl !Sync for InstallGuard
impl Freeze for InstallGuard
impl RefUnwindSafe for InstallGuard
impl Unpin for InstallGuard
impl UnsafeUnpin for InstallGuard
impl UnwindSafe for InstallGuard
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