Struct axsync::MutexGuard
source · pub struct MutexGuard<'a, T: ?Sized + 'a> { /* 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: ?Sized> Deref for MutexGuard<'a, T>
impl<'a, T: ?Sized> Deref for MutexGuard<'a, T>
source§impl<'a, T: ?Sized> DerefMut for MutexGuard<'a, T>
impl<'a, T: ?Sized> DerefMut for MutexGuard<'a, T>
source§impl<'a, T: ?Sized> Drop for MutexGuard<'a, T>
impl<'a, T: ?Sized> Drop for MutexGuard<'a, T>
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