pub struct NativeShareRequest { /* private fields */ }Expand description
Consuming boundary between common memory management and native transfer.
This type exposes no bytes, native parts, or growth operation. It keeps the requested one-writer permission plan attached until a platform-neutral transfer batch consumes it.
ⓘ
use native_ipc::memory::{NativeRegion, RegionOptions, WriterOwner};
let region = NativeRegion::allocate(RegionOptions::fixed(
32,
WriterOwner::Creator,
)).unwrap();
let mut prepared = region.prepare_for_sharing().unwrap();
prepared.initialize(|bytes| bytes.fill(0));Implementations§
Sourcepub const fn permissions(&self) -> PermissionPlan
pub const fn permissions(&self) -> PermissionPlan
Required creator/peer access assignment.
Sourcepub const fn seal_policy(&self) -> SealPolicy
pub const fn seal_policy(&self) -> SealPolicy
Mandatory native authority-sealing policy.
Sourcepub fn mapped_len(&self) -> usize
pub fn mapped_len(&self) -> usize
Complete native page-rounded mapping length.
Trait Implementations§
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