Struct shared_memory::Shmem
source · [−]pub struct Shmem { /* private fields */ }
Expand description
Structure used to extract information from an existing shared memory mapping
Implementations
sourceimpl Shmem
impl Shmem
sourcepub fn set_owner(&mut self, is_owner: bool) -> bool
pub fn set_owner(&mut self, is_owner: bool) -> bool
Allows for gaining/releasing ownership of the mapping
Warning : You must ensure at least one process owns the mapping in order to ensure proper cleanup code is ran
sourcepub fn get_flink_path(&self) -> Option<&PathBuf>
pub fn get_flink_path(&self) -> Option<&PathBuf>
Returns the flink path if present
Auto Trait Implementations
impl RefUnwindSafe for Shmem
impl !Send for Shmem
impl !Sync for Shmem
impl Unpin for Shmem
impl UnwindSafe for Shmem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more