referrerpolicy=no-referrer-when-downgrade
xcm_emulator

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§

impl<N: Network> TestExt for PenpalA<N>

impl<N: Network> TestExt for PenpalB<N>

impl<N: Network> TestExt for PeopleRococo<N>

impl<N: Network> TestExt for PeopleWestend<N>

impl<N: Network> TestExt for Rococo<N>

impl<N: Network> TestExt for Westend<N>