referrerpolicy=no-referrer-when-downgrade

Trait BabeApiClient

Source
pub trait BabeApiClient: ClientT {
    // Provided method
    fn epoch_authorship<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<AuthorityId, EpochAuthorship>, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the BabeApi RPC API.

Provided Methods§

Source

fn epoch_authorship<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<HashMap<AuthorityId, EpochAuthorship>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<TypeJsonRpseeInteral> BabeApiClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT,