referrerpolicy=no-referrer-when-downgrade
node_testing::client

Trait ClientExt

pub trait ClientExt<Block>: Sized
where 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

Re-export test-client utilities. Extension trait for a test client.

Required Methods§

fn finalize_block( &self, hash: <Block as Block>::Hash, justification: Option<([u8; 4], Vec<u8>)>, ) -> Result<(), Error>

Finalize a block.

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.

Implementors§

§

impl<B, E, RA, Block> ClientExt<Block> for Client<B, E, Block, RA>
where B: Backend<Block>, E: CallExecutor<Block> + RuntimeVersionOf + 'static, Client<B, E, Block, RA>: BlockImport<Block, Error = Error>, Block: Block,