Trait APIClient

Source
pub trait APIClient: Send + Sync {
    // Required method
    fn get_api_result<'life0, 'life1, 'async_trait>(
        &'life0 self,
        command: &'life1 MinerCommand,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn get_api_result<'life0, 'life1, 'async_trait>( &'life0 self, command: &'life1 MinerCommand, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl APIClient for asic_rs::miners::backends::btminer::v1::BTMinerRPCAPI

Source§

impl APIClient for asic_rs::miners::backends::btminer::v2::BTMinerRPCAPI

Source§

impl APIClient for asic_rs::miners::backends::btminer::v3::BTMinerRPCAPI

Source§

impl APIClient for PowerPlayWebAPI

Source§

impl APIClient for ESPMinerWebAPI

Source§

impl APIClient for VnishWebAPI