WriteLockMethod

Trait WriteLockMethod 

Source
pub trait WriteLockMethod {
    // Required method
    fn write<'a, V>(
        &self,
        rwlock: &'a RwLock<RawRwLock, V>,
    ) -> Option<RwLockWriteGuard<'a, RawRwLock, V>>;
}
Expand description

Trait for implementing write flavors on RwLocks.

Required Methods§

Source

fn write<'a, V>( &self, rwlock: &'a RwLock<RawRwLock, V>, ) -> Option<RwLockWriteGuard<'a, RawRwLock, V>>

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§