pub trait SignerRegisterer: Sync + Send {
    // Required methods
    fn register_signer<'life0, 'life1, 'async_trait>(
        &'life0 self,
        epoch: Epoch,
        signer: &'life1 Signer
    ) -> Pin<Box<dyn Future<Output = Result<SignerWithStake, SignerRegistrationError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_current_round<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Option<SignerRegistrationRound>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait to register a signer

Required Methods§

source

fn register_signer<'life0, 'life1, 'async_trait>( &'life0 self, epoch: Epoch, signer: &'life1 Signer ) -> Pin<Box<dyn Future<Output = Result<SignerWithStake, SignerRegistrationError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Register a signer

source

fn get_current_round<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Option<SignerRegistrationRound>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get current open round if exists

Implementors§