pub struct SharedMemory(/* private fields */);Implementations§
Sourcepub fn create(name: &str, len: usize) -> Result<Self>
pub fn create(name: &str, len: usize) -> Result<Self>
New zeroed memory of len bytes; name labels it for diagnostics.
§Errors
Creation, sizing, sealing or mapping failures; Unsupported where there are no child
processes.
Sourcepub fn as_ptr(&self) -> *mut u8
pub fn as_ptr(&self) -> *mut u8
The first byte of this process’s mapping, valid for Self::len bytes until the
memory drops. The child writes the same bytes, so read and write them only as the two
processes agree.
pub fn hand_to(&self, command: &mut Command, flag: &str)
pub fn handed_over(&mut self)
Auto Trait Implementations§
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