pub trait BlockMetaStorageRW: BlockMetaStorageRO {
// Required method
fn mutate_block_meta(
&self,
block_hash: H256,
f: impl FnOnce(&mut BlockMeta),
);
}Required Methods§
Sourcefn mutate_block_meta(&self, block_hash: H256, f: impl FnOnce(&mut BlockMeta))
fn mutate_block_meta(&self, block_hash: H256, f: impl FnOnce(&mut BlockMeta))
NOTE: if BlockMeta doesn’t exist in the database,
it will be created with default values and then will be mutated.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".