pub trait WriteLockable {
    fn wlock<D: SharedMemCast>(
        &mut self,
        lock_index: usize
    ) -> Result<WriteLockGuard<'_, D>, Box<dyn Error>>; fn wlock_as_slice<D: SharedMemCast>(
        &mut self,
        lock_index: usize
    ) -> Result<WriteLockGuardSlice<'_, D>, Box<dyn Error>>; }
Expand description

Provides wlock/wlock_as_slice functionnalities

Required Methods§

Returns a read/write lock to the shared memory

The caller must ensure that the index given to this function is valid

Returns a read/write access to a &mut [T] on the shared memory

The caller must ensure that the index given to this function is valid

Implementors§