Struct shared_memory::SharedMemRaw
source · pub struct SharedMemRaw { /* private fields */ }
Expand description
Raw shared memory mapping
This feature is only useful when dealing with memory mappings not managed by this crate. When all processes involed use the shared_memory crate, it is highly recommended to avoid SharedMemRaw and use the much safer/full-featured SharedMem.
Implementations§
Trait Implementations§
source§unsafe fn get_raw<D: SharedMemCast>(&self) -> &D
unsafe fn get_raw<D: SharedMemCast>(&self) -> &D
Returns a read only reference to D casted onto the shared memory
source§unsafe fn get_raw_slice<D: SharedMemCast>(&self) -> &[D] ⓘ
unsafe fn get_raw_slice<D: SharedMemCast>(&self) -> &[D] ⓘ
Returns a read only reference to a slice of D casted onto the shared memory
source§unsafe fn get_raw_mut<D: SharedMemCast>(&mut self) -> &mut D
unsafe fn get_raw_mut<D: SharedMemCast>(&mut self) -> &mut D
Returns a mutable reference to D casted onto the shared memory
source§unsafe fn get_raw_slice_mut<D: SharedMemCast>(&mut self) -> &mut [D] ⓘ
unsafe fn get_raw_slice_mut<D: SharedMemCast>(&mut self) -> &mut [D] ⓘ
Returns a mutable reference to a slice of D casted onto the shared memory