Struct libax::sync::MutexGuard
source · pub struct MutexGuard<'a, T>where
T: 'a + ?Sized,{ /* private fields */ }
Available on crate feature
multitask
only.Expand description
A guard that provides mutable data access.
When the guard falls out of scope it will release the lock.
Trait Implementations§
source§impl<'a, T> Deref for MutexGuard<'a, T>where
T: ?Sized,
impl<'a, T> Deref for MutexGuard<'a, T>where T: ?Sized,
source§impl<'a, T> DerefMut for MutexGuard<'a, T>where
T: ?Sized,
impl<'a, T> DerefMut for MutexGuard<'a, T>where T: ?Sized,
source§impl<'a, T> Drop for MutexGuard<'a, T>where
T: ?Sized,
impl<'a, T> Drop for MutexGuard<'a, T>where T: ?Sized,
source§fn drop(&mut self)
fn drop(&mut self)
The dropping of the MutexGuard
will release the lock it was created from.
Auto Trait Implementations§
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: ?Sized> Unpin for MutexGuard<'a, T>
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