pub trait AuthorityDiscoveryApi: RuntimeApi {
// Required method
fn authorities<'life0, 'async_trait, AuthorityId>(
&'life0 self,
at_block: Option<Self::Hash>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AuthorityId>>> + 'async_trait>>
where AuthorityId: 'async_trait + Decode,
Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Retrieve authority identifiers of the current and next authority set.
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.