pub struct SyntheticPhysMem {
data: Vec<u8>,
}Expand description
A synthetic physical memory image for testing.
Fields§
§data: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for SyntheticPhysMem
impl Clone for SyntheticPhysMem
Source§fn clone(&self) -> SyntheticPhysMem
fn clone(&self) -> SyntheticPhysMem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyntheticPhysMem
impl Debug for SyntheticPhysMem
Source§impl PhysicalMemoryProvider for SyntheticPhysMem
impl PhysicalMemoryProvider for SyntheticPhysMem
Source§fn read_phys(&self, addr: u64, buf: &mut [u8]) -> Result<usize>
fn read_phys(&self, addr: u64, buf: &mut [u8]) -> Result<usize>
Read up to
buf.len() bytes starting at physical address addr.
Returns the number of bytes actually read (may be less if crossing a gap).Source§fn format_name(&self) -> &str
fn format_name(&self) -> &str
Human-readable format name (e.g., “LiME”, “AVML v2”).
§fn total_size(&self) -> u64
fn total_size(&self) -> u64
Total physical memory size (sum of all range lengths).
Auto Trait Implementations§
impl Freeze for SyntheticPhysMem
impl RefUnwindSafe for SyntheticPhysMem
impl Send for SyntheticPhysMem
impl Sync for SyntheticPhysMem
impl Unpin for SyntheticPhysMem
impl UnsafeUnpin for SyntheticPhysMem
impl UnwindSafe for SyntheticPhysMem
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