pub trait WriteApi: GuardedTarget {
    type WriteGuard<'a>: DerefMut<Target = Self::Target>
       where Self: 'a;

    // Required method
    fn write(&mut self) -> Self::WriteGuard<'_>;
}
Expand description

Provides a mutable part of the RwApi interface.

Required Associated Types§

source

type WriteGuard<'a>: DerefMut<Target = Self::Target> where Self: 'a

Self::write return type.

Required Methods§

source

fn write(&mut self) -> Self::WriteGuard<'_>

RwLock::write analogue.

Implementations on Foreign Types§

source§

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

§

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

source§

fn write(&mut self) -> &mut T

source§

impl<T> WriteApi for RwLock<T>

§

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

source§

fn write(&mut self) -> &mut T

source§

impl<T> WriteApi for &RwLock<T>

§

type WriteGuard<'a> = RwLockWriteGuard<'a, RawRwLock, T> where Self: 'a

source§

fn write(&mut self) -> RwLockWriteGuard<'_, T>

Implementors§

source§

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

§

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

source§

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

§

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

source§

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

§

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

source§

impl<T> WriteApi for RwApiWrapperOwned<T>

§

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