Registry / other / sp-session

sp-session

JSON →
library44.0.0rscratesunverified

Primitives for sessions in Substrate-based chains.

# Cargo.toml [dependencies] sp-session = "44.0.0"
INSTALL
IMPORT
SIG · SP-SESSION
S
sp-session
otherrustv44.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SessionHandler
✓ use sp_session::SessionHandler;

Implements the SessionHandler trait for custom session logic.

use sp_session::SessionHandler; struct MyHandler; impl SessionHandler for MyHandler { fn on_new_session(_: bool) {} fn on_before_session_ending() {} fn on_disabled(_: u32) {} }
Debug
Known issues
gotchaPart of the Polkadot SDK; requires specific Substrate runtime dependencies.
fix
Add `sp-session` with correct version matching your Substrate version.
affects: >=44.0.0
Upgrade
Version history
44.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
sp-session — cargo add sp-session · libregistry