Struct ethcore::trace::NoopVMTracer
source · [−]pub struct NoopVMTracer;
Expand description
Nonoperative VM tracer. Does not trace anything.
Trait Implementations
sourceimpl VMTracer for NoopVMTracer
impl VMTracer for NoopVMTracer
sourcefn trace_next_instruction(
&mut self,
_pc: usize,
_instruction: u8,
_current_gas: U256
) -> bool
fn trace_next_instruction(
&mut self,
_pc: usize,
_instruction: u8,
_current_gas: U256
) -> bool
Trace the progression of interpreter to next instruction.
If tracer returns false
it won’t be called again.
@returns true if trace_prepare_execute
and trace_executed
should be called. Read more
sourcefn trace_prepare_execute(
&mut self,
_pc: usize,
_instruction: u8,
_gas_cost: U256,
_mem_written: Option<(usize, usize)>,
_store_written: Option<(U256, U256)>
)
fn trace_prepare_execute(
&mut self,
_pc: usize,
_instruction: u8,
_gas_cost: U256,
_mem_written: Option<(usize, usize)>,
_store_written: Option<(U256, U256)>
)
Trace the preparation to execute a single valid instruction.
sourcefn trace_failed(&mut self)
fn trace_failed(&mut self)
Trace the execution failure of a single instruction.
sourcefn trace_executed(&mut self, _gas_used: U256, _stack_push: &[U256], _mem: &[u8])
fn trace_executed(&mut self, _gas_used: U256, _stack_push: &[U256], _mem: &[u8])
Trace the finalised execution of a single valid instruction.
sourcefn prepare_subtrace(&mut self, _code: &[u8])
fn prepare_subtrace(&mut self, _code: &[u8])
Spawn subtracer which will be used to trace deeper levels of execution.
sourcefn done_subtrace(&mut self)
fn done_subtrace(&mut self)
Finalize subtracer.
Auto Trait Implementations
impl RefUnwindSafe for NoopVMTracer
impl Send for NoopVMTracer
impl Sync for NoopVMTracer
impl Unpin for NoopVMTracer
impl UnwindSafe for NoopVMTracer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more