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§
Sourcefn make_congested()
fn make_congested()
Fill up queue so it becomes congested.
Provided Methods§
Sourcefn ensure_bridged_target_destination() -> Result<Location, BenchmarkError>
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.