pub struct ESPMiningConfig {
pub device_type: ESPDeviceType,
pub wifi_ssid: String,
pub rpc_host: String,
pub rpc_port: u16,
pub max_tensor_dim: usize,
pub heartbeat_interval_ms: u64,
}Expand description
Mining configuration for ESP devices (RPC, tensor limits, heartbeat).
Fields§
§device_type: ESPDeviceTypeDevice type (ESP32, ESP32S, ESP8266).
wifi_ssid: StringWiFi SSID for provisioning.
rpc_host: StringValidator RPC host.
rpc_port: u16Validator RPC port.
max_tensor_dim: usizeMaximum tensor dimension for challenges.
heartbeat_interval_ms: u64Heartbeat interval in milliseconds.
Implementations§
Source§impl ESPMiningConfig
impl ESPMiningConfig
Sourcepub fn for_device(device_type: ESPDeviceType) -> Self
pub fn for_device(device_type: ESPDeviceType) -> Self
Builds default config for the given device type.
Trait Implementations§
Source§impl Clone for ESPMiningConfig
impl Clone for ESPMiningConfig
Source§fn clone(&self) -> ESPMiningConfig
fn clone(&self) -> ESPMiningConfig
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 ESPMiningConfig
impl Debug for ESPMiningConfig
Source§impl<'de> Deserialize<'de> for ESPMiningConfig
impl<'de> Deserialize<'de> for ESPMiningConfig
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 ESPMiningConfig
impl RefUnwindSafe for ESPMiningConfig
impl Send for ESPMiningConfig
impl Sync for ESPMiningConfig
impl Unpin for ESPMiningConfig
impl UnsafeUnpin for ESPMiningConfig
impl UnwindSafe for ESPMiningConfig
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