pub struct AllocationsTableReader { /* private fields */ }
Expand description
Mediates read access to a VMO written by AllocationsTableWriter.
Implementations§
Source§impl AllocationsTableReader
impl AllocationsTableReader
Sourcepub unsafe fn new(vmo: &Vmo) -> Result<AllocationsTableReader, Error>
pub unsafe fn new(vmo: &Vmo) -> Result<AllocationsTableReader, Error>
§Safety
The caller must guarantee that the vmo
is not accessed by others while the returned
instance is alive, usually by taking a snapshot of the VMO that AllocationsTableWriter
operates on and then reading the snapshot instead.
Auto Trait Implementations§
impl Freeze for AllocationsTableReader
impl RefUnwindSafe for AllocationsTableReader
impl Send for AllocationsTableReader
impl Sync for AllocationsTableReader
impl Unpin for AllocationsTableReader
impl UnwindSafe for AllocationsTableReader
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