pub struct HookGuard { /* private fields */ }Expand description
RAII owner of a set of installed hooks. Dropping it restores the original
slot values (best-effort, compare-exchange); HookGuard::uninstall does the
same but surfaces any conflict.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookGuard
impl RefUnwindSafe for HookGuard
impl Send for HookGuard
impl Sync for HookGuard
impl Unpin for HookGuard
impl UnsafeUnpin for HookGuard
impl UnwindSafe for HookGuard
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