Struct MutexGuard
pub struct MutexGuard<'a, T> { /* private fields */ }Available on crate feature
threading only.Expand description
Grants access to the Mutex inner data.
Dropping the MutexGuard will unlock the Mutex.
Trait Implementations§
§impl<T> Deref for MutexGuard<'_, T>
impl<T> Deref for MutexGuard<'_, T>
§impl<T> DerefMut for MutexGuard<'_, T>
impl<T> DerefMut for MutexGuard<'_, T>
§fn deref_mut(&mut self) -> &mut <MutexGuard<'_, T> as Deref>::Target
fn deref_mut(&mut self) -> &mut <MutexGuard<'_, T> as Deref>::Target
Mutably dereferences the value.
§impl<T> Drop for MutexGuard<'_, T>
impl<T> Drop for MutexGuard<'_, T>
impl<T> Sync for MutexGuard<'_, T>where
T: Sync,
Auto Trait Implementations§
impl<'a, T> Freeze for MutexGuard<'a, T>
impl<'a, T> !RefUnwindSafe for MutexGuard<'a, T>
impl<'a, T> !Send for MutexGuard<'a, T>
impl<'a, T> 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
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<'b, T> Peripheral for T
impl<'b, T> Peripheral for T
§unsafe fn clone_unchecked(&self) -> <T as Peripheral>::P
unsafe fn clone_unchecked(&self) -> <T as Peripheral>::P
Unsafely clone (duplicate) a peripheral singleton. Read more
Source§impl<R> TryRngCore for R
impl<R> TryRngCore for R
Source§type Error = Infallible
type Error = Infallible
The type returned in the event of a RNG error.
Source§fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>
fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>
Return the next random
u32.Source§fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>
fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>
Return the next random
u64.Source§fn try_fill_bytes(
&mut self,
dst: &mut [u8],
) -> Result<(), <R as TryRngCore>::Error>
fn try_fill_bytes( &mut self, dst: &mut [u8], ) -> Result<(), <R as TryRngCore>::Error>
Fill
dest entirely with random data.Source§fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
Wrap RNG with the
UnwrapMut wrapper.