Trait pallet_session::ShouldEndSession [−][src]
pub trait ShouldEndSession<BlockNumber> { fn should_end_session(now: BlockNumber) -> bool; }
Expand description
Decides whether the session should be ended.
Required methods
fn should_end_session(now: BlockNumber) -> bool
fn should_end_session(now: BlockNumber) -> bool
Return true
if the session should be ended.
Implementors
impl<BlockNumber: Rem<Output = BlockNumber> + Sub<Output = BlockNumber> + Zero + PartialOrd, Period: Get<BlockNumber>, Offset: Get<BlockNumber>> ShouldEndSession<BlockNumber> for PeriodicSessions<Period, Offset>