pub struct CallbackGuard<'a> { /* private fields */ }
Expand description
This struct is used to set bool flag to true till the end of scope and set the flag to false when dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CallbackGuard<'a>
impl<'a> RefUnwindSafe for CallbackGuard<'a>
impl<'a> Send for CallbackGuard<'a>
impl<'a> Sync for CallbackGuard<'a>
impl<'a> Unpin for CallbackGuard<'a>
impl<'a> !UnwindSafe for CallbackGuard<'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