pub struct Snapshot { /* private fields */ }Expand description
A snapshot of sandbox state that can be used to restore it later.
A wrapper around a SharedMemory reference and a snapshot
of the memory therein
Trait Implementations§
Source§impl TableReadOps for Snapshot
impl TableReadOps for Snapshot
Source§fn entry_addr(addr: u64, offset: u64) -> u64
fn entry_addr(addr: u64, offset: u64) -> u64
Offset the table address by the given offset in bytes. Read more
Source§unsafe fn read_entry(&self, addr: u64) -> u64
unsafe fn read_entry(&self, addr: u64) -> u64
Read a u64 from the given address, used to read existing page
table entries Read more
Source§fn to_phys(addr: u64) -> u64
fn to_phys(addr: u64) -> u64
Convert an abstract table address to a concrete physical address (u64)
which can be e.g. written into a page table entry
Source§fn from_phys(addr: u64) -> u64
fn from_phys(addr: u64) -> u64
Convert a concrete physical address (u64) which may have been e.g. read
from a page table entry back into an abstract table address
Source§fn root_table(&self) -> u64
fn root_table(&self) -> u64
Return the address of the root page table
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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