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) -> ESPMiningConfig
pub fn for_device(device_type: ESPDeviceType) -> ESPMiningConfig
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<ESPMiningConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ESPMiningConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ESPMiningConfig
impl Serialize for ESPMiningConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more