pub struct StaticMutexGuard<'a, T: ?Sized + 'a> { /* private fields */ }Expand description
RAII guard for StaticMutex returned by lock().
Automatically releases the mutex when dropped. Provides access to
the protected data through Deref and DerefMut.
Trait Implementations§
Source§impl<'a, T: ?Sized> Deref for StaticMutexGuard<'a, T>
impl<'a, T: ?Sized> Deref for StaticMutexGuard<'a, T>
Source§impl<'a, T: ?Sized> DerefMut for StaticMutexGuard<'a, T>
impl<'a, T: ?Sized> DerefMut for StaticMutexGuard<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for StaticMutexGuard<'a, T>where
T: ?Sized,
impl<'a, T> !RefUnwindSafe for StaticMutexGuard<'a, T>
impl<'a, T> !Send for StaticMutexGuard<'a, T>
impl<'a, T> !Sync for StaticMutexGuard<'a, T>
impl<'a, T> Unpin for StaticMutexGuard<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for StaticMutexGuard<'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