AvalonQMiner

Struct AvalonQMiner 

Source
pub struct AvalonQMiner { /* private fields */ }

Implementations§

Source§

impl AvalonQMiner

Source

pub fn new(ip: IpAddr, model: MinerModel) -> Self

Source

pub async fn reboot(&self) -> Result<bool>

Reboot the miner

Trait Implementations§

Source§

impl APIClient for AvalonQMiner

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,

Source§

impl CollectData for AvalonQMiner

Source§

fn get_collector(&self) -> DataCollector<'_>

Returns a DataCollector that can be used to collect data from the miner. Read more
Source§

impl Debug for AvalonQMiner

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl GetApiVersion for AvalonQMiner

Source§

fn parse_api_version(&self, data: &HashMap<DataField, Value>) -> Option<String>

Source§

fn get_api_version<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetControlBoardVersion for AvalonQMiner

Source§

fn get_control_board_version<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<MinerControlBoard>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn parse_control_board_version( &self, data: &HashMap<DataField, Value>, ) -> Option<MinerControlBoard>

Source§

impl GetDataLocations for AvalonQMiner

Source§

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 AvalonQMiner

Source§

fn get_device_info(&self) -> DeviceInfo

Returns information about the miner.
Source§

impl GetExpectedHashrate for AvalonQMiner

Source§

fn parse_expected_hashrate( &self, data: &HashMap<DataField, Value>, ) -> Option<HashRate>

Source§

fn get_expected_hashrate<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<HashRate>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetFans for AvalonQMiner

Source§

fn parse_fans(&self, data: &HashMap<DataField, Value>) -> Vec<FanData>

Source§

fn get_fans<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Vec<FanData>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetFirmwareVersion for AvalonQMiner

Source§

fn parse_firmware_version( &self, data: &HashMap<DataField, Value>, ) -> Option<String>

Source§

fn get_firmware_version<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetFluidTemperature for AvalonQMiner

Source§

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§

fn parse_fluid_temperature( &self, data: &HashMap<DataField, Value>, ) -> Option<Temperature>

Source§

impl GetHashboards for AvalonQMiner

Source§

fn parse_hashboards(&self, data: &HashMap<DataField, Value>) -> Vec<BoardData>

Source§

fn get_hashboards<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Vec<BoardData>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetHashrate for AvalonQMiner

Source§

fn parse_hashrate(&self, data: &HashMap<DataField, Value>) -> Option<HashRate>

Source§

fn get_hashrate<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<HashRate>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetHostname for AvalonQMiner

Source§

fn get_hostname<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn parse_hostname(&self, data: &HashMap<DataField, Value>) -> Option<String>

Source§

impl GetIP for AvalonQMiner

Source§

fn get_ip(&self) -> IpAddr

Returns the IP address of the miner.
Source§

impl GetIsMining for AvalonQMiner

Source§

fn get_is_mining<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn parse_is_mining(&self, data: &HashMap<DataField, Value>) -> bool

Source§

impl GetLightFlashing for AvalonQMiner

Source§

fn parse_light_flashing(&self, data: &HashMap<DataField, Value>) -> Option<bool>

Source§

fn get_light_flashing<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<bool>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetMAC for AvalonQMiner

Source§

fn parse_mac(&self, data: &HashMap<DataField, Value>) -> Option<MacAddr>

Source§

fn get_mac<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<MacAddr>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetMessages for AvalonQMiner

Source§

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,

Source§

fn parse_messages(&self, data: &HashMap<DataField, Value>) -> Vec<MinerMessage>

Source§

impl GetPools for AvalonQMiner

Source§

fn parse_pools(&self, data: &HashMap<DataField, Value>) -> Vec<PoolData>

Source§

fn get_pools<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Vec<PoolData>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetPsuFans for AvalonQMiner

Source§

fn get_psu_fans<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Vec<FanData>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn parse_psu_fans(&self, data: &HashMap<DataField, Value>) -> Vec<FanData>

Source§

impl GetSerialNumber for AvalonQMiner

Source§

fn get_serial_number<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn parse_serial_number( &self, data: &HashMap<DataField, Value>, ) -> Option<String>

Source§

impl GetUptime for AvalonQMiner

Source§

fn parse_uptime(&self, data: &HashMap<DataField, Value>) -> Option<Duration>

Source§

fn get_uptime<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<Duration>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetWattage for AvalonQMiner

Source§

fn parse_wattage(&self, data: &HashMap<DataField, Value>) -> Option<Power>

Source§

fn get_wattage<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<Power>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl GetWattageLimit for AvalonQMiner

Source§

fn parse_wattage_limit(&self, data: &HashMap<DataField, Value>) -> Option<Power>

Source§

fn get_wattage_limit<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<Power>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl Pause for AvalonQMiner

Source§

fn pause<'life0, 'async_trait>( &'life0 self, after: Option<Duration>, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl Restart for AvalonQMiner

Source§

fn restart<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl Resume for AvalonQMiner

Source§

fn resume<'life0, 'async_trait>( &'life0 self, after: Option<Duration>, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl SetFaultLight for AvalonQMiner

Source§

fn set_fault_light<'life0, 'async_trait>( &'life0 self, fault: bool, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl SetPowerLimit for AvalonQMiner

Source§

fn set_power_limit<'life0, 'async_trait>( &'life0 self, limit: Power, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> GetExpectedChips for T
where T: GetDeviceInfo,

Source§

impl<T> GetExpectedFans for T
where T: GetDeviceInfo,

Source§

impl<T> GetExpectedHashboards for T
where T: GetDeviceInfo,

Source§

impl<T> GetMinerData for T

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,

Asynchronously retrieves standardized information about a miner, returning it as a MinerData struct.
Source§

fn parse_data(&self, data: HashMap<DataField, Value>) -> MinerData

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> HasMinerControl for T

Source§

impl<T> Miner for T

Source§

impl<T> MinerInterface for T