pub trait BlockHandler {
// Provided methods
fn begin_block<C: Context>(_ctx: &C) { ... }
fn end_block<C: Context>(_ctx: &C) { ... }
}
Expand description
Block handler.
Provided Methods§
Sourcefn begin_block<C: Context>(_ctx: &C)
fn begin_block<C: Context>(_ctx: &C)
Perform any common actions at the start of the block (before any transactions have been executed).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.