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§
Sourcefn prepare_set_code_data() -> Vec<u8> ⓘ
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
.
Sourcefn setup_set_code_requirements(_code: &Vec<u8>) -> Result<(), BenchmarkError>
fn setup_set_code_requirements(_code: &Vec<u8>) -> Result<(), BenchmarkError>
Adds ability to the Runtime to prepare/initialize before running benchmark set_code
.
Sourcefn verify_set_code()
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.