Trait BlockClient

pub trait BlockClient:
    HeadersClient<Header = <Self::Block as Block>::Header>
    + BodiesClient<Body = <Self::Block as Block>::Body>
    + Unpin
    + Clone {
    type Block: Block;
}
Available on crate feature network only.
Expand description

Helper trait that unifies network behaviour needed for fetching entire blocks.

Required Associated Types§

type Block: Block

The Block type that this client fetches.

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.

Implementations on Foreign Types§

§

impl<B> BlockClient for FileClient<B>
where B: FullBlock,

§

type Block = B

Implementors§

§

impl BlockClient for TestFullBlockClient

§

type Block = Block<TransactionSigned>

§

impl<N> BlockClient for FetchClient<N>