[][src]Crate srml_session

Session Module

The Session module allows validators to manage their session keys, provides a function for changing the session length, and handles session rotation.

Overview

Terminology

Goals

The Session module in Substrate is designed to make the following possible:

Interface

Dispatchable Functions

Public Functions

Usage

Example from the SRML

The Staking module uses the Session module to get the validator set.

use srml_session as session;

let validators = <session::Module<T>>::validators();

Structs

CurrentIndex

Current index of the session.

GenesisConfig
Module
PeriodicSessions
Validators

The current set of validators.

Enums

Call
Event

Events for this module.

Traits

OnSessionEnding
OneSessionHandler
SessionHandler

Handler for when a session keys set changes.

ShouldEndSession
Trait

Type Definitions

SessionIndex

Simple index type with which we can count sessions.