[][src]Trait tendermint_light_client::components::io::Io

pub trait Io: Send + Sync {
    pub fn fetch_light_block(
        &self,
        height: AtHeight
    ) -> Result<LightBlock, IoError>; }

Interface for fetching light blocks from a full node, typically via the RPC client.

Required methods

pub fn fetch_light_block(&self, height: AtHeight) -> Result<LightBlock, IoError>[src]

Fetch a light block at the given height from a peer

Loading content...

Implementors

impl Io for ProdIo[src]

impl<F: Send + Sync> Io for F where
    F: Fn(AtHeight) -> Result<LightBlock, IoError>, 
[src]

Loading content...