Trait subspace_farmer::node_client::NodeClientExt

source ·
pub trait NodeClientExt: NodeClient {
    // Required method
    fn last_segment_headers<'life0, 'async_trait>(
        &'life0 self,
        limit: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Option<SegmentHeader>>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Node Client extension methods that are not necessary for farmer as a library, but might be useful for an app

Required Methods§

source

fn last_segment_headers<'life0, 'async_trait>( &'life0 self, limit: u64, ) -> Pin<Box<dyn Future<Output = Result<Vec<Option<SegmentHeader>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the last segment headers.

Implementors§