Trait SignerSynchronizer

Source
pub trait SignerSynchronizer: Sync + Send {
    // Required methods
    fn can_synchronize_signers<'life0, 'async_trait>(
        &'life0 self,
        epoch: Epoch,
    ) -> Pin<Box<dyn Future<Output = Result<bool, SignerRegistrationError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn synchronize_all_signers<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), SignerRegistrationError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait to synchronize signers

Required Methods§

Source

fn can_synchronize_signers<'life0, 'async_trait>( &'life0 self, epoch: Epoch, ) -> Pin<Box<dyn Future<Output = Result<bool, SignerRegistrationError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if the signers can be synchronized

Source

fn synchronize_all_signers<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), SignerRegistrationError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Synchronize all signers

Implementors§