pub trait ShouldEndSession<BlockNumber> {
    // Required method
    fn should_end_session(now: BlockNumber) -> bool;
}
Expand description

Decides whether the session should be ended.

Required Methods§

source

fn should_end_session(now: BlockNumber) -> bool

Return true if the session should be ended.

Implementors§

source§

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