pub trait ModuleInfo {
    type Context: Context;

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

Every module has to implement this trait.

Required Associated Types§

Required Methods§

source

fn new() -> Self

Module constructor.

source

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

Returns address of the module.

Implementors§