pub trait OnStateHook: Send + 'static {
// Required method
fn on_state(&mut self, state: StateUpdate);
}Expand description
Receives per-transaction state changes streamed from block execution.
Required Methods§
Sourcefn on_state(&mut self, state: StateUpdate)
fn on_state(&mut self, state: StateUpdate)
Observes one committed state update.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".