Struct grin_servers::common::stats::StratumStats
source · 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 blocks_found: u16,
pub network_hashrate: f64,
pub minimum_share_difficulty: u64,
pub worker_stats: Vec<WorkerStats>,
}
Expand description
Struct to return relevant information about the stratum server
Fields§
§is_enabled: bool
whether stratum server is enabled
is_running: bool
whether stratum server is running
num_workers: usize
Number of connected workers
block_height: u64
what block height we’re mining at
network_difficulty: u64
current network difficulty we’re working on
edge_bits: u16
cuckoo size of last share submitted
blocks_found: u16
Number of blocks found by all workers
network_hashrate: f64
current network Hashrate (for edge_bits)
The minimum acceptable share difficulty to request from miners
worker_stats: Vec<WorkerStats>
Individual worker status
Trait Implementations§
source§impl Clone for StratumStats
impl Clone for StratumStats
source§fn clone(&self) -> StratumStats
fn clone(&self) -> StratumStats
Returns a copy 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 StratumStats
impl Debug for StratumStats
source§impl Default for StratumStats
impl Default for StratumStats
source§fn default() -> StratumStats
fn default() -> StratumStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StratumStats
impl RefUnwindSafe for StratumStats
impl Send for StratumStats
impl Sync for StratumStats
impl Unpin for StratumStats
impl UnwindSafe for StratumStats
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
source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.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> 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<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.