pub trait ReadLockable {
    fn rlock<D: SharedMemCast>(
        &self,
        lock_index: usize
    ) -> Result<ReadLockGuard<'_, D>, Box<dyn Error>>; fn rlock_as_slice<D: SharedMemCast>(
        &self,
        lock_index: usize
    ) -> Result<ReadLockGuardSlice<'_, D>, Box<dyn Error>>; }
Expand description

Provides rlock/rlock_as_slice functionnalities

Required Methods§

Returns a read lock to the shared memory

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

Returns a read lock to the shared memory as a slice

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

Implementors§