[−][src]Struct pwn::sync::MutexGuard
A handle to a held Mutex.
As long as you have this guard, you have exclusive access to the underlying
T. The guard internally borrows the Mutex, so the mutex will not be
dropped while a guard exists.
The lock is automatically released whenever the guard is dropped, at which
point lock will succeed yet again.
Trait Implementations
impl<'_, T> Debug for MutexGuard<'_, T> where
T: Debug + ?Sized, [src]
T: Debug + ?Sized,
impl<'_, T> Deref for MutexGuard<'_, T> where
T: ?Sized, [src]
T: ?Sized,
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &<MutexGuard<'_, T> as Deref>::Target[src]
impl<'_, T> DerefMut for MutexGuard<'_, T> where
T: ?Sized, [src]
T: ?Sized,
fn deref_mut(&mut self) -> &mut <MutexGuard<'_, T> as Deref>::Target[src]
impl<'_, T> Display for MutexGuard<'_, T> where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<'_, T> Drop for MutexGuard<'_, T> where
T: ?Sized, [src]
T: ?Sized,
impl<'_, T> Sync for MutexGuard<'_, T> where
T: Send + Sync + ?Sized, [src]
T: Send + Sync + ?Sized,
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for MutexGuard<'a, T>
impl<'a, T: ?Sized> Send for MutexGuard<'a, T> where
T: Send,
T: Send,
impl<'a, T: ?Sized> Unpin for MutexGuard<'a, T>
impl<'a, T> !UnwindSafe for MutexGuard<'a, T>
Blanket Implementations
impl<T, A, P> Access<T> for P where
A: Access<T>,
P: Deref<Target = A>, [src]
A: Access<T>,
P: Deref<Target = A>,
type Guard = <A as Access<T>>::Guard
A guard object containing the value and keeping it alive. Read more
fn load(&self) -> <P as Access<T>>::Guard[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ[src]
impl<T, A> DynAccess<T> for A where
A: Access<T>,
<A as Access<T>>::Guard: 'static, [src]
A: Access<T>,
<A as Access<T>>::Guard: 'static,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,