Skip to main content

ValidatorRsmStateAsyncReader

Trait ValidatorRsmStateAsyncReader 

Source
pub trait ValidatorRsmStateAsyncReader: Send + Sync {
    // Required methods
    fn get_validator_rsm_root_summary<'life0, 'async_trait>(
        &'life0 self,
        environment: ValidatorRsmEnvironment,
        version: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ValidatorRsmRootSummary>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_validator_rsm_current_state<'life0, 'async_trait>(
        &'life0 self,
        environment: ValidatorRsmEnvironment,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ValidatorRsmCurrentState>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_validator_rsm_current_root_summary<'life0, 'async_trait>(
        &'life0 self,
        environment: ValidatorRsmEnvironment,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ValidatorRsmRootSummary>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_rsm_block_by_height<'life0, 'async_trait>(
        &'life0 self,
        environment: ValidatorRsmEnvironment,
        height: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockView>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_rsm_block_by_hash<'life0, 'async_trait>(
        &'life0 self,
        environment: ValidatorRsmEnvironment,
        hash: [u8; 32],
    ) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockView>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_latest_rsm_block<'life0, 'async_trait>(
        &'life0 self,
        environment: ValidatorRsmEnvironment,
    ) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockView>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_rsm_blocks<'life0, 'async_trait>(
        &'life0 self,
        environment: ValidatorRsmEnvironment,
        from_height: Option<u64>,
        limit: u32,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<RsmBlockView>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_rsm_block_commands<'life0, 'async_trait>(
        &'life0 self,
        environment: ValidatorRsmEnvironment,
        height: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<RsmBlockCommand>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn get_rsm_block_data<'life0, 'async_trait>(
        &'life0 self,
        environment: ValidatorRsmEnvironment,
        height: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockData>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn get_validator_rsm_root_summary<'life0, 'async_trait>( &'life0 self, environment: ValidatorRsmEnvironment, version: u64, ) -> Pin<Box<dyn Future<Output = Result<Option<ValidatorRsmRootSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_validator_rsm_current_state<'life0, 'async_trait>( &'life0 self, environment: ValidatorRsmEnvironment, ) -> Pin<Box<dyn Future<Output = Result<Option<ValidatorRsmCurrentState>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_validator_rsm_current_root_summary<'life0, 'async_trait>( &'life0 self, environment: ValidatorRsmEnvironment, ) -> Pin<Box<dyn Future<Output = Result<Option<ValidatorRsmRootSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_rsm_block_by_height<'life0, 'async_trait>( &'life0 self, environment: ValidatorRsmEnvironment, height: u64, ) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockView>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_rsm_block_by_hash<'life0, 'async_trait>( &'life0 self, environment: ValidatorRsmEnvironment, hash: [u8; 32], ) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockView>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_latest_rsm_block<'life0, 'async_trait>( &'life0 self, environment: ValidatorRsmEnvironment, ) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockView>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_rsm_blocks<'life0, 'async_trait>( &'life0 self, environment: ValidatorRsmEnvironment, from_height: Option<u64>, limit: u32, ) -> Pin<Box<dyn Future<Output = Result<Vec<RsmBlockView>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_rsm_block_commands<'life0, 'async_trait>( &'life0 self, environment: ValidatorRsmEnvironment, height: u64, ) -> Pin<Box<dyn Future<Output = Result<Vec<RsmBlockCommand>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn get_rsm_block_data<'life0, 'async_trait>( &'life0 self, environment: ValidatorRsmEnvironment, height: u64, ) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockData>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§