referrerpolicy=no-referrer-when-downgrade
polkadot_runtime_parachains::initializer

Trait OnNewSession

Source
pub trait OnNewSession<N> {
    // Required method
    fn on_new_session(notification: &SessionChangeNotification<N>);
}
Expand description

Inform something about a new session.

Required Methods§

Source

fn on_new_session(notification: &SessionChangeNotification<N>)

A new session was started.

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.

Implementations on Foreign Types§

Source§

impl<N> OnNewSession<N> for ()

Implementors§

Source§

impl<T: Config> OnNewSession<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>