pub trait ClientExt<Block>: Sizedwhere
Block: Block,{
// Required methods
fn finalize_block(
&self,
hash: <Block as Block>::Hash,
justification: Option<([u8; 4], Vec<u8>)>,
) -> Result<(), Error>;
fn genesis_hash(&self) -> <Block as Block>::Hash;
}
Expand description
Extension trait for a test client.
Required Methods§
Sourcefn finalize_block(
&self,
hash: <Block as Block>::Hash,
justification: Option<([u8; 4], Vec<u8>)>,
) -> Result<(), Error>
fn finalize_block( &self, hash: <Block as Block>::Hash, justification: Option<([u8; 4], Vec<u8>)>, ) -> Result<(), Error>
Finalize a block.
Sourcefn genesis_hash(&self) -> <Block as Block>::Hash
fn genesis_hash(&self) -> <Block as Block>::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.