pub struct BoundWriteMapping { /* private fields */ }Expand description
Sole-writer witness that owns its consumed active mapping.
Like the ActiveWriter it owns, a bound writer may move between threads
but cannot be shared between them:
ⓘ
use native_ipc::binding::BoundWriteMapping;
use native_ipc::core::mapping::WriterRegion;
fn assert_sync<T: Sync>() {}
assert_sync::<WriterRegion<BoundWriteMapping>>();Implementations§
Source§impl BoundWriteMapping
impl BoundWriteMapping
Sourcepub fn into_active(self) -> ActiveWriter
pub fn into_active(self) -> ActiveWriter
Releases the witness and returns the owned active mapping unchanged.
Trait Implementations§
impl Send for BoundWriteMapping
Auto Trait Implementations§
impl !RefUnwindSafe for BoundWriteMapping
impl !Sync for BoundWriteMapping
impl !UnwindSafe for BoundWriteMapping
impl Freeze for BoundWriteMapping
impl Unpin for BoundWriteMapping
impl UnsafeUnpin for BoundWriteMapping
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