pub trait GetMinerData: CollectData {
// Required methods
fn get_data<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MinerData> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn parse_data(&self, data: HashMap<DataField, Value>) -> MinerData;
}Expand description
Trait that every miner backend must implement to provide miner data.
Required Methods§
Sourcefn get_data<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MinerData> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_data<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MinerData> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Asynchronously retrieves standardized information about a miner,
returning it as a MinerData struct.