Trait tikv_util::HandyRwLock[][src]

pub trait HandyRwLock<T> {
    fn wl(&self) -> RwLockWriteGuard<'_, T>;
fn rl(&self) -> RwLockReadGuard<'_, T>; }
[]

A handy shortcut to replace RwLock write/read().unwrap() pattern to shortcut wl and rl.

Required methods

fn wl(&self) -> RwLockWriteGuard<'_, T>[src]

fn rl(&self) -> RwLockReadGuard<'_, T>[src]

Implementations on Foreign Types

impl<T> HandyRwLock<T> for RwLock<T>[src][]

Implementors