pub trait ContextObject {
// Required methods
fn trace(&mut self, state: [u64; 12]);
fn consume(&mut self, amount: u64);
fn get_remaining(&self) -> u64;
}
Expand description
Runtime context
Required Methods§
Sourcefn trace(&mut self, state: [u64; 12])
fn trace(&mut self, state: [u64; 12])
Called for every instruction executed when tracing is enabled
Sourcefn get_remaining(&self) -> u64
fn get_remaining(&self) -> u64
Get the number of remaining instructions allowed