Struct pallet_session::historical::Module [−][src]
pub struct Module<T: Config>(_);
Implementations
pub fn historical_root<K: EncodeLike<SessionIndex>>(
key: K
) -> Option<(T::Hash, ValidatorCount)>
pub fn historical_root<K: EncodeLike<SessionIndex>>(
key: K
) -> Option<(T::Hash, ValidatorCount)>
Mapping from historical session indices to session-data root hash and validator count.
Prune historical stored session roots up to (but not including)
up_to
.
Trait Implementations
Returns the current storage version as supported by the pallet.
Returns the on-chain storage version of the pallet as stored in the storage.
Run integrity test. Read more
type Proof = MembershipProof
type Proof = MembershipProof
The proof of membership itself.
type IdentificationTuple = IdentificationTuple<T>
type IdentificationTuple = IdentificationTuple<T>
The full identification of a key owner and the stash account.
Prove membership of a key owner in the current block-state. Read more
Check a proof of membership on-chain. Return Some
iff the proof is
valid and recent enough to check. Read more
This function is being called after every block import (when fully synced). Read more
The block is being finalized. Implement to have something happen. Read more
Something that should happen at genesis.
The block is being initialized. Implement to have something happen. Read more
type ValidatorId = T::ValidatorId
type ValidatorId = T::ValidatorId
Type for representing validator id in a session.
type ValidatorIdOf = T::ValidatorIdOf
type ValidatorIdOf = T::ValidatorIdOf
A type for converting AccountId
to ValidatorId
.
Returns current session index.
Returns the active set of validators.
type Identification = T::FullIdentification
type Identification = T::FullIdentification
Full identification of ValidatorId
.
type IdentificationOf = T::FullIdentificationOf
type IdentificationOf = T::FullIdentificationOf
A type for converting ValidatorId
to Identification
.
Auto Trait Implementations
impl<T> RefUnwindSafe for Module<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Module<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Generate a storage key unique to this runtime upgrade. Read more
Get temporary storage data written by Self::set_temp_storage
. Read more
Write some temporary data to a specific storage that can be read (potentially in
post-upgrade hook) via Self::get_temp_storage
. Read more
impl<T> PalletVersionToStorageVersionHelper for T where
T: GetStorageVersion + PalletInfoAccess,
impl<T> PalletVersionToStorageVersionHelper for T where
T: GetStorageVersion + PalletInfoAccess,
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,