pub struct StepRecord {
pub pc: u64,
pub op: u8,
pub gas: u64,
pub gas_cost: u64,
pub depth: u64,
pub error: Option<String>,
pub memory: Option<Bytes>,
pub storage: Option<Arc<BTreeMap<String, String>>>,
pub storage_diff: Option<BTreeMap<String, StorageChange>>,
pub transient_storage: Option<BTreeMap<String, String>>,
pub return_data: Option<Arc<str>>,
}Expand description
One step as a producer appends it with StepTable::append: its plain fields, and
the state that changed since the step before.
Fields§
§pc: u64§op: u8§gas: u64§gas_cost: u64The cost as the tracer reports it; see TraceStep::gas_cost.
depth: u64§error: Option<String>§memory: Option<Bytes>The memory the step starts with, in full. None leaves it to the frame being
recorded with StepTable::write_memory, or keeps the previous step’s when none
is.
storage: Option<Arc<BTreeMap<String, String>>>The storage the backend reports for the step; None keeps the previous step’s.
storage_diff: Option<BTreeMap<String, StorageChange>>The slots the step changed.
transient_storage: Option<BTreeMap<String, String>>The transient slots the step read or wrote, with their value after it.
return_data: Option<Arc<str>>The return data buffer the step starts with, as unprefixed hex; empty for an empty
buffer, and None keeps the previous step’s.
Trait Implementations§
Source§impl Clone for StepRecord
impl Clone for StepRecord
Source§impl Debug for StepRecord
impl Debug for StepRecord
Source§impl Default for StepRecord
impl Default for StepRecord
impl Eq for StepRecord
Source§impl PartialEq for StepRecord
impl PartialEq for StepRecord
impl StructuralPartialEq for StepRecord
Auto Trait Implementations§
impl !Freeze for StepRecord
impl RefUnwindSafe for StepRecord
impl Send for StepRecord
impl Sync for StepRecord
impl Unpin for StepRecord
impl UnsafeUnpin for StepRecord
impl UnwindSafe for StepRecord
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