referrerpolicy=no-referrer-when-downgrade

Trait Config

Source
pub trait Config: Config {
    // Provided methods
    fn prepare_set_code_data() -> Vec<u8>  { ... }
    fn setup_set_code_requirements(
        _code: &Vec<u8>,
    ) -> Result<(), BenchmarkError> { ... }
    fn verify_set_code() { ... }
}

Provided Methods§

Source

fn prepare_set_code_data() -> Vec<u8>

Adds ability to the Runtime to test against their sample code.

Default is ../res/kitchensink_runtime.compact.compressed.wasm.

Source

fn setup_set_code_requirements(_code: &Vec<u8>) -> Result<(), BenchmarkError>

Adds ability to the Runtime to prepare/initialize before running benchmark set_code.

Source

fn verify_set_code()

Adds ability to the Runtime to do custom validation after benchmark.

Default is checking for CodeUpdated event .

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§