RwLockExtra

Trait RwLockExtra 

Source
pub trait RwLockExtra {
    type Value: ?Sized;

    // Required methods
    fn read_unwrap(&self) -> RwLockReadGuard<'_, Self::Value>;
    fn write_unwrap(&self) -> RwLockWriteGuard<'_, Self::Value>;
}

Required Associated Types§

Required Methods§

Source

fn read_unwrap(&self) -> RwLockReadGuard<'_, Self::Value>

Source

fn write_unwrap(&self) -> RwLockWriteGuard<'_, Self::Value>

Implementations on Foreign Types§

Source§

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

Implementors§