pub struct Guard<'lock, T> { /* private fields */ }Expand description
The lock guard for Local.
Because this lock type only supports exclusive locking, the same guard type is used for both exclusive and shared guards.
Trait Implementations§
Auto Trait Implementations§
impl<'lock, T> Freeze for Guard<'lock, T>
impl<'lock, T> !RefUnwindSafe for Guard<'lock, T>
impl<'lock, T> !Send for Guard<'lock, T>
impl<'lock, T> !Sync for Guard<'lock, T>
impl<'lock, T> Unpin for Guard<'lock, T>
impl<'lock, T> !UnwindSafe for Guard<'lock, T>
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