pub trait GetMinerData:
CollectData
+ MinerInterface
+ GetIP
+ GetDeviceInfo
+ GetExpectedHashboards
+ GetExpectedChips
+ GetExpectedFans
+ GetMAC
+ GetSerialNumber
+ GetHostname
+ GetApiVersion
+ GetFirmwareVersion
+ GetControlBoardVersion
+ GetHashboards
+ GetHashrate
+ GetExpectedHashrate
+ GetFans
+ GetPsuFans
+ GetFluidTemperature
+ GetWattage
+ GetWattageLimit
+ GetLightFlashing
+ GetMessages
+ GetUptime
+ GetIsMining
+ GetPools {
// 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.