pub trait BuildStorage {
    // Required method
    fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>;

    // Provided method
    fn build_storage(&self) -> Result<Storage, String> { ... }
}
Expand description

Complex storage builder stuff.

Required Methods§

source

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Assimilate the storage for this module into pre-existing overlays.

Provided Methods§

source

fn build_storage(&self) -> Result<Storage, String>

Build the storage out of this builder.

Implementations on Foreign Types§

source§

impl BuildStorage for ()

source§

impl BuildStorage for Storage

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

source§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

source§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

source§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

source§

impl<T, I> BuildStorage for GenesisConfig<T, I>where T: Config<I>, I: 'static,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

source§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

source§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

source§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Implementors§