Trait WriteLock

Source
pub trait WriteLock<'a> {
    type Output;

    // Required methods
    unsafe fn lock_info(&self) -> LockInfo<'_>;
    unsafe fn lock_unchecked(self) -> <Self as WriteLock<'a>>::Output;

    // Provided method
    fn write(self) -> Mut<Self>
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

Source

unsafe fn lock_info(&self) -> LockInfo<'_>

Source

unsafe fn lock_unchecked(self) -> <Self as WriteLock<'a>>::Output

Provided Methods§

Source

fn write(self) -> Mut<Self>
where Self: Sized,

Implementors§

Source§

impl<'a, T> WriteLock<'a> for &'a Mutex<T>
where T: 'a,