pub struct StdMutexGuard<'mutex, T> { /* private fields */ }Expand description
A RAII implementation of a scoped lock for a PhasedCellSync.
When this structure is dropped (falls out of scope), the lock will be released.
Implementations§
Source§impl<'mutex, T> StdMutexGuard<'mutex, T>
impl<'mutex, T> StdMutexGuard<'mutex, T>
Sourcepub fn try_new(guarded_option: MutexGuard<'mutex, Option<T>>) -> Option<Self>
pub fn try_new(guarded_option: MutexGuard<'mutex, Option<T>>) -> Option<Self>
Tries to create a new StdMutexGuard.
This method returns None if the guarded data is None.
Trait Implementations§
Source§impl<'mutex, T> Deref for StdMutexGuard<'mutex, T>
impl<'mutex, T> Deref for StdMutexGuard<'mutex, T>
Auto Trait Implementations§
impl<'mutex, T> Freeze for StdMutexGuard<'mutex, T>
impl<'mutex, T> RefUnwindSafe for StdMutexGuard<'mutex, T>
impl<'mutex, T> !Send for StdMutexGuard<'mutex, T>
impl<'mutex, T> Sync for StdMutexGuard<'mutex, T>where
T: Sync,
impl<'mutex, T> Unpin for StdMutexGuard<'mutex, T>
impl<'mutex, T> UnwindSafe for StdMutexGuard<'mutex, 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