pub struct Guard<T> { /* private fields */ }
Expand description
Holds the lock until dropped.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Guard<T>
impl<T> RefUnwindSafe for Guard<T>where
T: RefUnwindSafe,
impl<T> !Send for Guard<T>
impl<T> !Sync for Guard<T>
impl<T> Unpin for Guard<T>
impl<T> UnwindSafe for Guard<T>where
T: RefUnwindSafe,
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