Skip to main content

RwLockExt

Trait RwLockExt 

Source
pub trait RwLockExt<T: ?Sized> {
    // Required methods
    fn read_ok(&self) -> RwLockReadGuard<'_, T>;
    fn write_ok(&self) -> RwLockWriteGuard<'_, T>;
}

Required Methods§

Source

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

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: ?Sized> RwLockExt<T> for RwLock<T>

Source§

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

Source§

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

Implementors§