referrerpolicy=no-referrer-when-downgrade

Trait xcm_emulator::TestExt

source ·
pub trait TestExt {
    // Required methods
    fn build_new_ext(storage: Storage) -> TestExternalities;
    fn new_ext() -> TestExternalities;
    fn move_ext_out(id: &'static str);
    fn move_ext_in(id: &'static str);
    fn reset_ext();
    fn execute_with<R>(execute: impl FnOnce() -> R) -> R;
    fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R;
}

Required Methods§

source

fn build_new_ext(storage: Storage) -> TestExternalities

source

fn new_ext() -> TestExternalities

source

fn move_ext_out(id: &'static str)

source

fn move_ext_in(id: &'static str)

source

fn reset_ext()

source

fn execute_with<R>(execute: impl FnOnce() -> R) -> R

source

fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TestExt for ()

source§

fn build_new_ext(_storage: Storage) -> TestExternalities

source§

fn new_ext() -> TestExternalities

source§

fn move_ext_out(_id: &'static str)

source§

fn move_ext_in(_id: &'static str)

source§

fn reset_ext()

source§

fn execute_with<R>(execute: impl FnOnce() -> R) -> R

source§

fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R

Implementors§