Enum risc0_zkvm::TraceEvent
source · pub enum TraceEvent {
InstructionStart {
cycle: u32,
pc: u32,
insn: u32,
},
RegisterSet {
idx: usize,
value: u32,
},
MemorySet {
addr: u32,
region: Vec<u8>,
},
}
Expand description
An event traced from the running VM.
Variants§
InstructionStart
Fields
An instruction has started at the given program counter
RegisterSet
A register has been set
MemorySet
A memory location has been written
Trait Implementations§
source§impl Clone for TraceEvent
impl Clone for TraceEvent
source§fn clone(&self) -> TraceEvent
fn clone(&self) -> TraceEvent
Returns a copy 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§fn eq(&self, other: &TraceEvent) -> bool
fn eq(&self, other: &TraceEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TraceEvent
impl PartialOrd for TraceEvent
source§fn partial_cmp(&self, other: &TraceEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &TraceEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.