#[non_exhaustive]pub enum TraceEvent {
InstructionStart {
cycle: u64,
pc: u32,
insn: u32,
},
RegisterSet {
idx: usize,
value: u32,
},
MemorySet {
addr: u32,
region: Vec<u8>,
},
PageIn {
cycles: u64,
},
PageOut {
cycles: u64,
},
}Expand description
An event traced from the running VM.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InstructionStart
An instruction has started at the given program counter
Fields
RegisterSet
A register has been set
MemorySet
A memory location has been written
PageIn
A page is read for the first time in a segment
PageOut
A page has been written to for the first time in a segment
Trait Implementations§
Source§impl Clone for TraceEvent
impl Clone for TraceEvent
Source§fn clone(&self) -> TraceEvent
fn clone(&self) -> TraceEvent
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 TraceEvent
impl Debug for TraceEvent
Source§impl<'de> Deserialize<'de> for TraceEvent
impl<'de> Deserialize<'de> for TraceEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for TraceEvent
impl Ord for TraceEvent
Source§fn cmp(&self, other: &TraceEvent) -> Ordering
fn cmp(&self, other: &TraceEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TraceEvent
impl PartialEq for TraceEvent
Source§impl PartialOrd for TraceEvent
impl PartialOrd for TraceEvent
Source§impl Serialize for TraceEvent
impl Serialize for TraceEvent
impl Eq for TraceEvent
impl StructuralPartialEq for TraceEvent
Auto Trait Implementations§
impl Freeze for TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnwindSafe for TraceEvent
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