pub struct ShmMapping { /* private fields */ }Expand description
Owned mapping of a shared-memory segment.
Implementations§
Source§impl ShmMapping
impl ShmMapping
Sourcepub fn create(name: &str, size: usize) -> Result<ShmMapping, String>
pub fn create(name: &str, size: usize) -> Result<ShmMapping, String>
Create a new shared-memory segment, truncate to size, and map it.
Sourcepub fn open_existing(name: &str, size: usize) -> Result<ShmMapping, String>
pub fn open_existing(name: &str, size: usize) -> Result<ShmMapping, String>
Open an existing shared-memory segment and map it.
Trait Implementations§
Source§impl Drop for ShmMapping
Available on Unix only.
impl Drop for ShmMapping
Available on Unix only.
impl Send for ShmMapping
impl Sync for ShmMapping
Auto Trait Implementations§
impl Freeze for ShmMapping
impl RefUnwindSafe for ShmMapping
impl Unpin for ShmMapping
impl UnsafeUnpin for ShmMapping
impl UnwindSafe for ShmMapping
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more