Trait BlockClient

Source
pub trait BlockClient:
    HeadersClient<Header = <Self::Block as Block>::Header>
    + BodiesClient<Body = <Self::Block as Block>::Body>
    + Unpin
    + Clone {
    type Block: Block;
}
Expand description

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

Required Associated Types§

Source

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.

Implementors§

Source§

impl BlockClient for TestFullBlockClient

Available on crate feature test-utils only.
Source§

type Block = Block<EthereumTxEnvelope<TxEip4844>>

Source§

impl<Net> BlockClient for NoopFullBlockClient<Net>
where Net: NetworkPrimitives,

Source§

type Block = <Net as NetworkPrimitives>::Block