pub trait BlockServer {
    // Required methods
    fn query_block<'life0, 'async_trait>(
        &'life0 self,
        query_block: impl 'async_trait + Into<QueryBlock> + Send + 'static
    ) -> Pin<Box<dyn Future<Output = Result<Arc<Block>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn query_blocks_since<'life0, 'async_trait>(
        &'life0 self,
        previous_block_hash: H256,
        depth: usize
    ) -> Pin<Box<dyn Future<Output = Result<BlocksSince>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn subscribe_blocks<'life0, 'async_trait>(
        &'life0 self,
        confirmations: usize
    ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<BlockStreamItem>> + Send>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn query_block<'life0, 'async_trait>( &'life0 self, query_block: impl 'async_trait + Into<QueryBlock> + Send + 'static ) -> Pin<Box<dyn Future<Output = Result<Arc<Block>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn query_blocks_since<'life0, 'async_trait>( &'life0 self, previous_block_hash: H256, depth: usize ) -> Pin<Box<dyn Future<Output = Result<BlocksSince>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn subscribe_blocks<'life0, 'async_trait>( &'life0 self, confirmations: usize ) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<BlockStreamItem>> + Send>>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<I, S> BlockServer for GrpcStateFoldClient<I, S>where I: Send + Sync, S: Send + Sync,