pub trait ReadApi: GuardedTarget {
    type ReadGuard<'a>: Deref<Target = Self::Target>
       where Self: 'a;

    // Required method
    fn read(&self) -> Self::ReadGuard<'_>;
}
Expand description

Provides a constant part of the RwApi interface.

Required Associated Types§

source

type ReadGuard<'a>: Deref<Target = Self::Target> where Self: 'a

Self::read return type.

Required Methods§

source

fn read(&self) -> Self::ReadGuard<'_>

RwLock::read analogue.

Implementations on Foreign Types§

source§

impl<T> ReadApi for &mut RwLock<T>

§

type ReadGuard<'a> = RwLockReadGuard<'a, RawRwLock, T> where Self: 'a

source§

fn read(&self) -> RwLockReadGuard<'_, T>

source§

impl<T> ReadApi for &RwLock<T>

§

type ReadGuard<'a> = RwLockReadGuard<'a, RawRwLock, T> where Self: 'a

source§

fn read(&self) -> RwLockReadGuard<'_, T>

source§

impl<T> ReadApi for RwLock<T>

§

type ReadGuard<'a> = RwLockReadGuard<'a, RawRwLock, T> where Self: 'a

source§

fn read(&self) -> RwLockReadGuard<'_, T>

Implementors§

source§

impl<'a, T> ReadApi for &ReadApiWrapper<'a, T>

§

type ReadGuard<'i> = &'i &'a T where Self: 'i

source§

impl<'a, T> ReadApi for &RwApiWrapper<'a, T>

§

type ReadGuard<'i> = &'i &'a mut T where Self: 'i

source§

impl<'a, T> ReadApi for &mut ReadApiWrapper<'a, T>

§

type ReadGuard<'i> = &'i &'a T where Self: 'i

source§

impl<'a, T> ReadApi for &mut RwApiWrapper<'a, T>

§

type ReadGuard<'i> = &'i &'a mut T where Self: 'i

source§

impl<'a, T> ReadApi for ReadApiWrapper<'a, T>

§

type ReadGuard<'i> = &'i &'a T where Self: 'i

source§

impl<'a, T> ReadApi for RwApiWrapper<'a, T>

§

type ReadGuard<'i> = &'i &'a mut T where Self: 'i

source§

impl<T> ReadApi for &RwApiWrapperOwned<T>

§

type ReadGuard<'i> = &'i T where Self: 'i

source§

impl<T> ReadApi for &mut RwApiWrapperOwned<T>

§

type ReadGuard<'i> = &'i T where Self: 'i

source§

impl<T> ReadApi for RwApiWrapperOwned<T>

§

type ReadGuard<'i> = &'i T where Self: 'i