pub struct MemoryAccess {
pub linear: u64,
pub physical: Option<u64>,
pub physical_end: Option<u64>,
pub size: u32,
pub kind: AccessKind,
pub class: AccessClass,
pub outcome: AccessOutcome,
pub conditional: bool,
}Expand description
One memory access by one instruction or event.
Fields§
§linear: u64Linear (virtual) address: segment base + effective address.
physical: Option<u64>Guest-physical address of the first byte, if the page is mapped.
For an access that crosses a page boundary this is the first
page’s address; MemoryAccess::physical_end gives the second.
physical_end: Option<u64>Guest-physical address of the last byte, when it lies on a different page than the first.
size: u32Size in bytes.
kind: AccessKindRead, write, both, or fetch.
class: AccessClassWhy the access happened.
outcome: AccessOutcomeDid it happen?
conditional: boolThe access is conditional on a mask or a condition code.
Trait Implementations§
Source§impl Clone for MemoryAccess
impl Clone for MemoryAccess
impl Copy for MemoryAccess
Source§impl Debug for MemoryAccess
impl Debug for MemoryAccess
impl Eq for MemoryAccess
Source§impl PartialEq for MemoryAccess
impl PartialEq for MemoryAccess
impl StructuralPartialEq for MemoryAccess
Auto Trait Implementations§
impl Freeze for MemoryAccess
impl RefUnwindSafe for MemoryAccess
impl Send for MemoryAccess
impl Sync for MemoryAccess
impl Unpin for MemoryAccess
impl UnsafeUnpin for MemoryAccess
impl UnwindSafe for MemoryAccess
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