pub trait ReadLockMethod {
    fn read<'a, V>(
        &self,
        rwlock: &'a RwLock<V>
    ) -> Option<RwLockReadGuard<'a, V>>; }
Expand description

Trait for implementing read flavors on RwLocks.

Required Methods

Obtain a read lock. Blocking locks are infallible and always return a ‘Some()’ variant.

Implementors