Skip to main content

BlockMetaStorageRO

Trait BlockMetaStorageRO 

Source
pub trait BlockMetaStorageRO {
    // Required method
    fn block_meta(&self, block_hash: H256) -> BlockMeta;
}

Required Methods§

Source

fn block_meta(&self, block_hash: H256) -> BlockMeta

NOTE: if BlockMeta doesn’t exist in the database, it will return the default value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + BlockMetaStorageRO + ?Sized> BlockMetaStorageRO for &'a T

Source§

fn block_meta(&self, block_hash: H256) -> BlockMeta

Source§

impl<T: BlockMetaStorageRO + ?Sized> BlockMetaStorageRO for Box<T>

Source§

fn block_meta(&self, block_hash: H256) -> BlockMeta

Implementors§