pub trait Observer {
// Provided method
fn block_before_new_era(_next_era: EraNumber) -> Weight { ... }
}Expand description
Trait for observers (listeners) of various events related to dApp staking protocol.
Provided Methods§
Sourcefn block_before_new_era(_next_era: EraNumber) -> Weight
fn block_before_new_era(_next_era: EraNumber) -> Weight
Called in the block right before the next era starts.
Returns the weight consumed by the call.
§Arguments
next_era- Era number of the next era.
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.