Struct grin_servers::common::stats::WorkerStats
source · pub struct WorkerStats {
pub id: String,
pub is_connected: bool,
pub last_seen: SystemTime,
pub initial_block_height: u64,
pub pow_difficulty: u64,
pub num_accepted: u64,
pub num_rejected: u64,
pub num_stale: u64,
pub num_blocks_found: u64,
}
Expand description
Struct to return relevant information about stratum workers
Fields§
§id: String
Unique ID for this worker
is_connected: bool
whether stratum worker is currently connected
last_seen: SystemTime
Timestamp of most recent communication with this worker
initial_block_height: u64
which block height it starts mining
pow_difficulty: u64
pow difficulty this worker is using
num_accepted: u64
number of valid shares submitted
num_rejected: u64
number of invalid shares submitted
num_stale: u64
number of shares submitted too late
num_blocks_found: u64
number of valid blocks found
Trait Implementations§
source§impl Clone for WorkerStats
impl Clone for WorkerStats
source§fn clone(&self) -> WorkerStats
fn clone(&self) -> WorkerStats
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 WorkerStats
impl Debug for WorkerStats
source§impl Default for WorkerStats
impl Default for WorkerStats
source§fn default() -> WorkerStats
fn default() -> WorkerStats
Returns the “default value” for a type. Read more
source§impl PartialEq for WorkerStats
impl PartialEq for WorkerStats
source§fn eq(&self, other: &WorkerStats) -> bool
fn eq(&self, other: &WorkerStats) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
impl Freeze for WorkerStats
impl RefUnwindSafe for WorkerStats
impl Send for WorkerStats
impl Sync for WorkerStats
impl Unpin for WorkerStats
impl UnwindSafe for WorkerStats
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.