SignatureResultCacheUpdater

Trait SignatureResultCacheUpdater 

Source
pub trait SignatureResultCacheUpdater<T: ResultCache> {
    // Required methods
    fn get_ready_to_commit_signatures<'life0, 'async_trait>(
        &'life0 mut self,
        current_block_height: usize,
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<Vec<T>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn add<'life0, 'async_trait>(
        &'life0 mut self,
        group_index: usize,
        task: T::Task,
        message: T::M,
        threshold: usize,
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn add_partial_signature<'life0, 'async_trait>(
        &'life0 mut self,
        task_request_id: Vec<u8>,
        member_address: Address,
        partial_signature: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_commit_result<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        task_request_id: &'life1 [u8],
        status: BLSResultCacheState,
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn incr_committed_times<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        task_request_id: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn get_ready_to_commit_signatures<'life0, 'async_trait>( &'life0 mut self, current_block_height: usize, ) -> Pin<Box<dyn Future<Output = DataAccessResult<Vec<T>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn add<'life0, 'async_trait>( &'life0 mut self, group_index: usize, task: T::Task, message: T::M, threshold: usize, ) -> Pin<Box<dyn Future<Output = DataAccessResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn add_partial_signature<'life0, 'async_trait>( &'life0 mut self, task_request_id: Vec<u8>, member_address: Address, partial_signature: Vec<u8>, ) -> Pin<Box<dyn Future<Output = DataAccessResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_commit_result<'life0, 'life1, 'async_trait>( &'life0 mut self, task_request_id: &'life1 [u8], status: BLSResultCacheState, ) -> Pin<Box<dyn Future<Output = DataAccessResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn incr_committed_times<'life0, 'life1, 'async_trait>( &'life0 mut self, task_request_id: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = DataAccessResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§