pub struct MiningConfig {Show 19 fields
pub network: NetworkType,
pub enabled: bool,
pub auto_start: bool,
pub offer_gpu: bool,
pub offer_cpu: bool,
pub max_gpu_usage: f32,
pub max_cpu_usage: f32,
pub reserved_ram_gb: f32,
pub wallet_address: String,
pub wallet_private_key: Option<String>,
pub payout_threshold: f64,
pub auto_withdraw: bool,
pub withdrawal_address: Option<String>,
pub benchmark_on_start: bool,
pub adaptive_performance: bool,
pub min_job_reward: f64,
pub rpc_endpoints: Vec<String>,
pub p2p_port: u16,
pub api_port: u16,
}Expand description
AI Mining configuration for Hanzo Node Enables mining AI coins by offering GPU/CPU compute to the network
Fields§
§network: NetworkType§enabled: bool§auto_start: bool§offer_gpu: bool§offer_cpu: bool§max_gpu_usage: f32§max_cpu_usage: f32§reserved_ram_gb: f32§wallet_address: String§wallet_private_key: Option<String>§payout_threshold: f64§auto_withdraw: bool§withdrawal_address: Option<String>§benchmark_on_start: bool§adaptive_performance: bool§min_job_reward: f64§rpc_endpoints: Vec<String>§p2p_port: u16§api_port: u16Trait Implementations§
Source§impl Clone for MiningConfig
impl Clone for MiningConfig
Source§fn clone(&self) -> MiningConfig
fn clone(&self) -> MiningConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MiningConfig
impl Debug for MiningConfig
Source§impl Default for MiningConfig
impl Default for MiningConfig
Source§impl<'de> Deserialize<'de> for MiningConfig
impl<'de> Deserialize<'de> for MiningConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MiningConfig
impl RefUnwindSafe for MiningConfig
impl Send for MiningConfig
impl Sync for MiningConfig
impl Unpin for MiningConfig
impl UnsafeUnpin for MiningConfig
impl UnwindSafe for MiningConfig
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