referrerpolicy=no-referrer-when-downgrade
pallet_session::historical

Trait SessionManager

Source
pub trait SessionManager<ValidatorId, FullIdentification>: SessionManager<ValidatorId> {
    // Required methods
    fn new_session(
        new_index: SessionIndex,
    ) -> Option<Vec<(ValidatorId, FullIdentification)>>;
    fn start_session(start_index: SessionIndex);
    fn end_session(end_index: SessionIndex);

    // Provided method
    fn new_session_genesis(
        new_index: SessionIndex,
    ) -> Option<Vec<(ValidatorId, FullIdentification)>> { ... }
}
Expand description

Specialization of the crate-level SessionManager which returns the set of full identification when creating a new session.

Required Methods§

Source

fn new_session( new_index: SessionIndex, ) -> Option<Vec<(ValidatorId, FullIdentification)>>

If there was a validator set change, its returns the set of new validators along with their full identifications.

Source

fn start_session(start_index: SessionIndex)

Source

fn end_session(end_index: SessionIndex)

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§