Trait CeloMiddleware

Source
pub trait CeloMiddleware: Middleware {
    // Provided method
    fn get_validators_bls_public_keys<'life0, 'async_trait, T>(
        &'life0 self,
        block_id: T,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, ProviderError>> + Send + 'async_trait>>
       where T: 'async_trait + Into<BlockId> + Send + Sync,
             Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Available on crate feature celo only.
Expand description

Celo-specific extension trait

Provided Methods§

Source

fn get_validators_bls_public_keys<'life0, 'async_trait, T>( &'life0 self, block_id: T, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, ProviderError>> + Send + 'async_trait>>
where T: 'async_trait + Into<BlockId> + Send + Sync, Self: Sync + 'async_trait, 'life0: 'async_trait,

Get validator BLS public keys

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<T> CeloMiddleware for T
where T: Middleware,