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§
Sourcefn 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 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
Sourcefn 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,
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