openzeppelin_monitor::services::blockchain

Trait ClientPoolTrait

Source
pub trait ClientPoolTrait: Send + Sync {
    type EvmClient: EvmClientTrait + BlockChainClient + BlockFilterFactory<Self::EvmClient>;
    type StellarClient: StellarClientTrait + BlockChainClient + BlockFilterFactory<Self::StellarClient>;

    // Required methods
    fn get_evm_client<'life0, 'life1, 'async_trait>(
        &'life0 self,
        network: &'life1 Network,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<Self::EvmClient>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_stellar_client<'life0, 'life1, 'async_trait>(
        &'life0 self,
        network: &'life1 Network,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<Self::StellarClient>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for the client pool.

Required Associated Types§

Required Methods§

Source

fn get_evm_client<'life0, 'life1, 'async_trait>( &'life0 self, network: &'life1 Network, ) -> Pin<Box<dyn Future<Output = Result<Arc<Self::EvmClient>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_stellar_client<'life0, 'life1, 'async_trait>( &'life0 self, network: &'life1 Network, ) -> Pin<Box<dyn Future<Output = Result<Arc<Self::StellarClient>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§