pub struct StratumStats {
pub is_enabled: bool,
pub is_running: bool,
pub num_workers: usize,
pub block_height: u64,
pub network_difficulty: u64,
pub edge_bits: u16,
pub worker_stats: Vec<WorkerStats>,
}
Struct to return relevant information about the stratum server
whether stratum server is enabled
whether stratum server is running
Number of connected workers
what block height we're mining at
current network difficulty we're working on
cuckoo size used for mining
Calculate network hashrate
Returns the "default value" for a type. Read more
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> DebugAny for T where T: Any + Debug, | |
impl<T> CloneAny for T where T: Clone + Any, | |
impl<T> UnsafeAny for T where T: Any, | |
impl<T> SafeBorrow for T where T: ?Sized, | |
Given ptr
, which was obtained from a prior call to Self::borrow()
, return a value with the same nominal lifetime which is guaranteed to survive mutations to Self
. Read more
impl<'a, T> DefaultFeatures for T where T: 'a + Send + Sync + Clone, | |
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
impl<'a, T> NonSyncFeatures for T where T: 'a + Clone, | |
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more