[][src]Trait frame_support::traits::EstimateNextSessionRotation

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

Something that can estimate at which block the next session rotation will happen. This should be the same logical unit that dictates ShouldEndSession to the session module. No Assumptions are made about the scheduling of the sessions.

Required methods

pub fn estimate_next_session_rotation(now: BlockNumber) -> Option<BlockNumber>[src]

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

None should be returned if the estimation fails to come to an answer

pub fn weight(now: BlockNumber) -> Weight[src]

Return the weight of calling estimate_next_session_rotation

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

Loading content...