pub trait ShouldEndSession<BlockNumber> {
// Required method
fn should_end_session(now: BlockNumber) -> bool;
}Expand description
Decides whether the session should be ended.
Required Methods§
Sourcefn should_end_session(now: BlockNumber) -> bool
fn should_end_session(now: BlockNumber) -> bool
Return true if the session should be ended.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".