Trait OnStateHook

Source
pub trait OnStateHook: Send + 'static {
    // Required method
    fn on_state(&mut self, source: StateChangeSource, state: &EvmState);
}
Expand description

A hook that is called after each state change.

Required Methods§

Source

fn on_state(&mut self, source: StateChangeSource, state: &EvmState)

Invoked with the source of the change and the state after each system call.

Implementors§