pub struct MutexGuard<'a, T: ?Sized + 'a> { /* private fields */ }Expand description
The MutexGuard is the result of successfully aquiring the mutual exclusive lock for the interior data. If this guard goes ot of scope the lock will be released
Trait Implementations§
Source§impl<T: ?Sized + Debug> Debug for MutexGuard<'_, T>
implement debug trait to forward to the type wrapped within the guard
impl<T: ?Sized + Debug> Debug for MutexGuard<'_, T>
implement debug trait to forward to the type wrapped within the guard
Source§impl<T: ?Sized> Deref for MutexGuard<'_, T>
impl<T: ?Sized> Deref for MutexGuard<'_, T>
Source§impl<T: ?Sized> DerefMut for MutexGuard<'_, T>
impl<T: ?Sized> DerefMut for MutexGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for MutexGuard<'a, T>where
T: ?Sized,
impl<'a, T> !RefUnwindSafe for MutexGuard<'a, T>
impl<'a, T> Send for MutexGuard<'a, T>
impl<'a, T> Sync for MutexGuard<'a, T>
impl<'a, T> Unpin for MutexGuard<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for MutexGuard<'a, 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