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

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

A read guard (returned by .read())

Fields

inner
data

Methods

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

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

Trait Implementations

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

type Target = T

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

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

fn drop(&mut self)