Trait RPCAPIClient

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

Required Methods§

Source

fn send_command<'life0, 'life1, 'async_trait>( &'life0 self, command: &'life1 str, _privileged: bool, parameters: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

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

Source§

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

Source§

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