pub struct OffsetPtr<T> {
pub index: u32,
/* private fields */
}Expand description
Position-independent pointer to a slot in a SharedRegion. Stable
across processes because the underlying MMF is byte-identical;
adding mmap_base + ptr.index * size_of::<T>() resolves in any
process.
Fields§
§index: u32Implementations§
Trait Implementations§
impl<T> Copy for OffsetPtr<T>
impl<T> Eq for OffsetPtr<T>
Auto Trait Implementations§
impl<T> Freeze for OffsetPtr<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for OffsetPtr<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for OffsetPtr<T>where
PhantomData<T>: Send,
impl<T> Sync for OffsetPtr<T>where
PhantomData<T>: Sync,
impl<T> Unpin for OffsetPtr<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for OffsetPtr<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for OffsetPtr<T>where
PhantomData<T>: UnwindSafe,
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