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§

source

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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Observer for ()

Implementors§