pub struct GlobalGuard<B: GlobalLockBackend> { /* private fields */ }
Expand description
A guard for a GlobalLock
.
See global_lock!
for examples.
Trait Implementations§
Source§impl<B: GlobalLockBackend> Deref for GlobalGuard<B>
impl<B: GlobalLockBackend> Deref for GlobalGuard<B>
Source§impl<B: GlobalLockBackend> DerefMut for GlobalGuard<B>
impl<B: GlobalLockBackend> DerefMut for GlobalGuard<B>
Auto Trait Implementations§
impl<B> Freeze for GlobalGuard<B>
impl<B> !RefUnwindSafe for GlobalGuard<B>
impl<B> !Send for GlobalGuard<B>
impl<B> Sync for GlobalGuard<B>
impl<B> Unpin for GlobalGuard<B>
impl<B> !UnwindSafe for GlobalGuard<B>
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