Struct std::sync::rwlock::RwLockWriteGuard [] [src]

pub struct RwLockWriteGuard<'a, T: ?Sized + 'a> {
    inner: &'a Mutex<RwLockInner>,
    data: &'a UnsafeCell<T>,
}

A write guard (returned by .write())

Fields

inner
data

Methods

impl<'rwlock, T: ?Sized> RwLockWriteGuard<'rwlock, T>

fn new(inner: &'rwlock Mutex<RwLockInner>, data: &'rwlock UnsafeCell<T>) -> Self

Trait Implementations

impl<'rwlock, T: ?Sized> Deref for RwLockWriteGuard<'rwlock, T>

type Target = T

fn deref<'a>(&'a self) -> &'a T

impl<'rwlock, T: ?Sized> DerefMut for RwLockWriteGuard<'rwlock, T>

fn deref_mut<'a>(&'a mut self) -> &'a mut T

impl<'a, T: ?Sized> Drop for RwLockWriteGuard<'a, T>

fn drop(&mut self)