pub struct BTMiner2 {
pub ip: IpAddr,
pub rpc: BTMinerRPCAPI,
pub device_info: DeviceInfo,
}Fields§
§ip: IpAddr§rpc: BTMinerRPCAPI§device_info: DeviceInfoImplementations§
Source§impl BTMiner2
impl BTMiner2
pub fn new(ip: IpAddr, model: MinerModel, firmware: MinerFirmware) -> Self
Trait Implementations§
Source§impl CollectData for BTMiner2
impl CollectData for BTMiner2
Source§fn get_collector(&self) -> DataCollector<'_>
fn get_collector(&self) -> DataCollector<'_>
Returns a
DataCollector that can be used to collect data from the miner. Read moreSource§impl GetApiVersion for BTMiner2
impl GetApiVersion for BTMiner2
Source§impl GetControlBoardVersion for BTMiner2
impl GetControlBoardVersion for BTMiner2
Source§impl GetDataLocations for BTMiner2
impl GetDataLocations for BTMiner2
Source§fn get_locations(&self, data_field: DataField) -> Vec<DataLocation> ⓘ
fn get_locations(&self, data_field: DataField) -> Vec<DataLocation> ⓘ
Returns the locations of the specified data field on the miner. Read more
Source§impl GetDeviceInfo for BTMiner2
impl GetDeviceInfo for BTMiner2
Source§fn get_device_info(&self) -> DeviceInfo
fn get_device_info(&self) -> DeviceInfo
Returns information about the miner.
Source§impl GetExpectedHashrate for BTMiner2
impl GetExpectedHashrate for BTMiner2
Source§impl GetFirmwareVersion for BTMiner2
impl GetFirmwareVersion for BTMiner2
Source§impl GetFluidTemperature for BTMiner2
impl GetFluidTemperature for BTMiner2
fn parse_fluid_temperature( &self, data: &HashMap<DataField, Value>, ) -> Option<Temperature>
fn get_fluid_temperature<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<Temperature>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl GetHashboards for BTMiner2
impl GetHashboards for BTMiner2
Source§impl GetHashrate for BTMiner2
impl GetHashrate for BTMiner2
Source§impl GetHostname for BTMiner2
impl GetHostname for BTMiner2
Source§impl GetIsMining for BTMiner2
impl GetIsMining for BTMiner2
Source§impl GetLightFlashing for BTMiner2
impl GetLightFlashing for BTMiner2
Source§impl GetMessages for BTMiner2
impl GetMessages for BTMiner2
fn get_messages<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<MinerMessage>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn parse_messages(&self, data: &HashMap<DataField, Value>) -> Vec<MinerMessage>
Source§impl GetPsuFans for BTMiner2
impl GetPsuFans for BTMiner2
Source§impl GetSerialNumber for BTMiner2
impl GetSerialNumber for BTMiner2
Source§impl GetWattage for BTMiner2
impl GetWattage for BTMiner2
Source§impl GetWattageLimit for BTMiner2
impl GetWattageLimit for BTMiner2
Auto Trait Implementations§
impl Freeze for BTMiner2
impl RefUnwindSafe for BTMiner2
impl Send for BTMiner2
impl Sync for BTMiner2
impl Unpin for BTMiner2
impl UnwindSafe for BTMiner2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> GetMinerData for Twhere
T: GetIP + GetDeviceInfo + GetExpectedHashboards + GetExpectedChips + GetExpectedFans + GetMAC + GetSerialNumber + GetHostname + GetApiVersion + GetFirmwareVersion + GetControlBoardVersion + GetHashboards + GetHashrate + GetExpectedHashrate + GetFans + GetPsuFans + GetFluidTemperature + GetWattage + GetWattageLimit + GetLightFlashing + GetMessages + GetUptime + GetIsMining + GetPools,
impl<T> GetMinerData for Twhere
T: GetIP + GetDeviceInfo + GetExpectedHashboards + GetExpectedChips + GetExpectedFans + GetMAC + GetSerialNumber + GetHostname + GetApiVersion + GetFirmwareVersion + GetControlBoardVersion + GetHashboards + GetHashrate + GetExpectedHashrate + GetFans + GetPsuFans + GetFluidTemperature + GetWattage + GetWattageLimit + GetLightFlashing + GetMessages + GetUptime + GetIsMining + GetPools,
Source§fn get_data<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MinerData> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn get_data<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MinerData> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Asynchronously retrieves standardized information about a miner,
returning it as a
MinerData struct.