[][src]Trait frame_support::traits::PalletInfo

pub trait PalletInfo {
    pub fn index<P: 'static>() -> Option<usize>;
pub fn name<P: 'static>() -> Option<&'static str>; }

Provides information about the pallet setup in the runtime.

An implementor should be able to provide information about each pallet that is configured in construct_runtime!.

Required methods

pub fn index<P: 'static>() -> Option<usize>[src]

Convert the given pallet P into its index as configured in the runtime.

pub fn name<P: 'static>() -> Option<&'static str>[src]

Convert the given pallet P into its name as configured in the runtime.

Loading content...

Implementations on Foreign Types

impl PalletInfo for ()[src]

Loading content...

Implementors

Loading content...