Struct widerwlock::WriteGuard
source · pub struct WriteGuard<'a, T: ?Sized + 'a> { /* private fields */ }
Expand description
Returned from the write()
method and grants read-write access to the enclosed data
Implementations
sourceimpl<'a, T: ?Sized + 'a> WriteGuard<'a, T>
impl<'a, T: ?Sized + 'a> WriteGuard<'a, T>
sourcepub fn downgrade_to_read_lock(self) -> ReadGuard<'a, T>
pub fn downgrade_to_read_lock(self) -> ReadGuard<'a, T>
Downgrade the lock to a read lock. Other writers may take this lock in between, that is, this is not an atomic downgrade.
Trait Implementations
sourceimpl<'a, T: ?Sized> Deref for WriteGuard<'a, T>
impl<'a, T: ?Sized> Deref for WriteGuard<'a, T>
sourceimpl<'a, T: ?Sized> DerefMut for WriteGuard<'a, T>
impl<'a, T: ?Sized> DerefMut for WriteGuard<'a, T>
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for WriteGuard<'a, T>
impl<'a, T: ?Sized> Send for WriteGuard<'a, T>where
T: Send + Sync,
impl<'a, T: ?Sized> Sync for WriteGuard<'a, T>where
T: Send + Sync,
impl<'a, T: ?Sized> Unpin for WriteGuard<'a, T>
impl<'a, T> !UnwindSafe for WriteGuard<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more