referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::PalletInfoAccess

pub trait PalletInfoAccess {
    // Required methods
    fn index() -> usize;
    fn name() -> &'static str;
    fn name_hash() -> [u8; 16];
    fn module_name() -> &'static str;
    fn crate_version() -> CrateVersion;
}
Expand description

Provides information about the pallet itself and its setup in the runtime.

Declare some information and access the information provided by PalletInfo for a specific pallet.

Required Methods§

fn index() -> usize

Index of the pallet as configured in the runtime.

fn name() -> &'static str

Name of the pallet as configured in the runtime.

fn name_hash() -> [u8; 16]

Two128 hash of name.

fn module_name() -> &'static str

Name of the Rust module containing the pallet.

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<T> PalletInfoAccess for Pallet<T>
where T: Config,