Trait shared_memory::ReadLockable[][src]

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

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