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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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