referrerpolicy=no-referrer-when-downgrade
pallet_xcm_bridge_hub_router::benchmarking

Trait Config

Source
pub trait Config<I: 'static>: Config<I> {
    // Required method
    fn make_congested();

    // Provided method
    fn ensure_bridged_target_destination() -> Result<Location, BenchmarkError> { ... }
}
Expand description

Trait that must be implemented by runtime to be able to benchmark pallet properly.

Required Methods§

Source

fn make_congested()

Fill up queue so it becomes congested.

Provided Methods§

Source

fn ensure_bridged_target_destination() -> Result<Location, BenchmarkError>

Returns destination which is valid for this router instance. (Needs to pass T::Bridges) Make sure that SendXcm will pass.

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.

Implementors§