pub trait ModuleInfo {
    type Context: Context;

    // Required methods
    fn address(&self) -> &<Self::Context as Spec>::Address;
    fn prefix(&self) -> Prefix;
    fn dependencies(&self) -> Vec<&<Self::Context as Spec>::Address>;
}
Expand description

Every module has to implement this trait.

Required Associated Types§

Required Methods§

source

fn address(&self) -> &<Self::Context as Spec>::Address

Returns address of the module.

source

fn prefix(&self) -> Prefix

Returns the prefix of the module.

source

fn dependencies(&self) -> Vec<&<Self::Context as Spec>::Address>

Returns addresses of all the other modules this module is dependent on

Implementors§