Trait CryptoClient

Source
pub trait CryptoClient {
    // Required methods
    fn client_type(&self) -> ClientType;
    fn sync_stats<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = SyncStats> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn wallet_balance<'life0, 'life1, 'async_trait>(
        &'life0 self,
        identifier: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<WalletBalance>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn client_type(&self) -> ClientType

Source

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

Source

fn wallet_balance<'life0, 'life1, 'async_trait>( &'life0 self, identifier: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<WalletBalance>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§