pub trait ClientExt<Block: BlockT>: Sized {
// Required methods
fn finalize_block(
&self,
hash: Block::Hash,
justification: Option<Justification>,
) -> Result<()>;
fn genesis_hash(&self) -> <Block as BlockT>::Hash;
}
Expand description
Extension trait for a test client.
Required Methods§
Sourcefn finalize_block(
&self,
hash: Block::Hash,
justification: Option<Justification>,
) -> Result<()>
fn finalize_block( &self, hash: Block::Hash, justification: Option<Justification>, ) -> Result<()>
Finalize a block.
Sourcefn genesis_hash(&self) -> <Block as BlockT>::Hash
fn genesis_hash(&self) -> <Block as BlockT>::Hash
Returns hash of the genesis block.
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.