pub struct LatchGuard<'a> { /* private fields */ }
Expand description
An RAII implementation of a “scoped lock” of a latch. When this structure is dropped (falls out of scope), the lock will be unlocked.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LatchGuard<'a>
impl<'a> RefUnwindSafe for LatchGuard<'a>
impl<'a> !Send for LatchGuard<'a>
impl<'a> !Sync for LatchGuard<'a>
impl<'a> Unpin for LatchGuard<'a>
impl<'a> UnwindSafe for LatchGuard<'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