Trait RwLock

Source
pub trait RwLock {
    type ReadGuard: for<'a> PlugLifetime<'a>;
    type WriteGuard: for<'a> PlugLifetime<'a>;

    // Required methods
    fn read(&self) -> PluggedGuard<'_, Self::ReadGuard>;
    fn write(&self) -> PluggedGuard<'_, Self::WriteGuard>;
}

Required Associated Types§

Source

type ReadGuard: for<'a> PlugLifetime<'a>

Source

type WriteGuard: for<'a> PlugLifetime<'a>

Required Methods§

Source

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

Source

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

Implementations on Foreign Types§

Source§

impl<T> RwLock for RwLock<T>
where T: 'static,

Implementors§

Source§

impl<T> RwLock for T
where T: Mutex,