pub trait RequestBlocks: Clone + Send + Sync + 'static {
    type Error: Display;

    // Required method
    fn request_block(&self, block_id: BlockId) -> Result<(), Self::Error>;
}
Expand description

An interface for requesting specific blocks from the block sync. Required by the data availability mechanism in ABFT.

Required Associated Types§

Required Methods§

source

fn request_block(&self, block_id: BlockId) -> Result<(), Self::Error>

Request the given block.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RequestBlocks for UnboundedSender<BlockId>

§

type Error = TrySendError<BlockId>

source§

fn request_block(&self, block_id: BlockId) -> Result<(), Self::Error>

Implementors§