pub struct BoundReadMapping { /* private fields */ }Expand description
Read-only witness that owns its consumed active mapping.
A region bound over this witness is a unique capability; neither the witness nor the region it backs can be duplicated:
ⓘ
use native_ipc::binding::BoundReadMapping;
use native_ipc::core::mapping::ReaderRegion;
fn duplicate(
region: ReaderRegion<BoundReadMapping>,
) -> (ReaderRegion<BoundReadMapping>, ReaderRegion<BoundReadMapping>) {
let copy = region.clone();
(region, copy)
}Implementations§
Source§impl BoundReadMapping
impl BoundReadMapping
Sourcepub fn into_active(self) -> ActiveReader
pub fn into_active(self) -> ActiveReader
Releases the witness and returns the owned active mapping unchanged.
Trait Implementations§
Source§impl ReadOnlyMapping for BoundReadMapping
impl ReadOnlyMapping for BoundReadMapping
impl Send for BoundReadMapping
impl Sync for BoundReadMapping
Auto Trait Implementations§
impl !RefUnwindSafe for BoundReadMapping
impl !UnwindSafe for BoundReadMapping
impl Freeze for BoundReadMapping
impl Unpin for BoundReadMapping
impl UnsafeUnpin for BoundReadMapping
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