reth_evm::system_calls

Trait OnStateHook

Source
pub trait OnStateHook {
    // Required method
    fn on_state(&mut self, state: &EvmState);
}
Expand description

A hook that is called after each state change.

Required Methods§

Source

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

Invoked with the state after each system call.

Implementors§

Source§

impl OnStateHook for NoopHook

Source§

impl<F> OnStateHook for F
where F: FnMut(&EvmState),