On this page
Struct std::sync::RwLockWriteGuard
pub struct RwLockWriteGuard<'a, T: ?Sized + 'a> { /* private fields */ }
RAII structure used to release the exclusive write access of a lock when dropped.
This structure is created by the write
and try_write
methods on RwLock
.
Trait Implementations
impl<T: Debug> Debug for RwLockWriteGuard<'_, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more
impl<T: ?Sized> Deref for RwLockWriteGuard<'_, T>
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
Dereferences the value.
impl<T: ?Sized> DerefMut for RwLockWriteGuard<'_, T>
fn deref_mut(&mut self) -> &mut T
Mutably dereferences the value.
impl<T: ?Sized + Display> Display for RwLockWriteGuard<'_, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more
impl<T: ?Sized> Drop for RwLockWriteGuard<'_, T>
impl<T: ?Sized> !Send for RwLockWriteGuard<'_, T>
impl<T: ?Sized + Sync> Sync for RwLockWriteGuard<'_, T>
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for RwLockWriteGuard<'a, T>
impl<'a, T: ?Sized> Unpin for RwLockWriteGuard<'a, T>
impl<'a, T: ?Sized> UnwindSafe for RwLockWriteGuard<'a, T>
Blanket Implementations
impl<T> Any for T
where
T: 'static + ?Sized,
impl<T> Borrow<T> for T
where
T: ?Sized,
impl<T> BorrowMut<T> for T
where
T: ?Sized,
impl<T> From<T> for T
fn from(t: T) -> T
Returns the argument unchanged.
impl<T, U> Into<U> for T
where
U: From<T>,
fn into(self) -> U
Calls U::from(self)
.
That is, this conversion is whatever the implementation of From<T> for U
chooses to do.
impl<T> ToString for T
where
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T
where
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>
Performs the conversion.
impl<T, U> TryInto<U> for T
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
Performs the conversion.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/sync/struct.RwLockWriteGuard.html