Trait pallet_session::ShouldEndSession[][src]

pub trait ShouldEndSession<BlockNumber> {
    fn should_end_session(now: BlockNumber) -> bool;
}

Decides whether the session should be ended.

Required methods

fn should_end_session(now: BlockNumber) -> bool[src]

Return true if the session should be ended.

Loading content...

Implementors

impl<BlockNumber: Rem<Output = BlockNumber> + Sub<Output = BlockNumber> + Zero + PartialOrd, Period: Get<BlockNumber>, Offset: Get<BlockNumber>> ShouldEndSession<BlockNumber> for PeriodicSessions<Period, Offset>[src]

Loading content...