[][src]Trait frame_support::traits::EstimateNextNewSession

pub trait EstimateNextNewSession<BlockNumber> {
    fn estimate_next_new_session(now: BlockNumber) -> Option<BlockNumber>;
fn weight(now: BlockNumber) -> Weight; }

Something that can estimate at which block the next new_session will be triggered. This must always be implemented by the session module.

Required methods

fn estimate_next_new_session(now: BlockNumber) -> Option<BlockNumber>

Return the block number at which the next new session is estimated to happen.

fn weight(now: BlockNumber) -> Weight

Return the weight of calling estimate_next_new_session

Loading content...

Implementations on Foreign Types

impl<BlockNumber: Bounded> EstimateNextNewSession<BlockNumber> for ()[src]

Loading content...

Implementors

Loading content...