pub struct WorkerStats {
pub worker_name: String,
pub hashrate1m: String,
pub hashrate5m: String,
pub hashrate1hr: String,
pub hashrate1d: String,
pub hashrate7d: String,
pub last_share: u64,
pub shares: usize,
pub best_share: f64,
pub best_ever: usize,
}Expand description
Worker stats
Fields§
§worker_name: StringWorker name
hashrate1m: StringHashrate (1m)
hashrate5m: StringHashrate (5m)
hashrate1hr: StringHashrate (1hr)
hashrate1d: StringHashrate (1d)
hashrate7d: StringHashrate (7d)
Last share timestamp
Total shares
Best share
best_ever: usizeBest ever share
Trait Implementations§
Source§impl Clone for WorkerStats
impl Clone for WorkerStats
Source§fn clone(&self) -> WorkerStats
fn clone(&self) -> WorkerStats
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 WorkerStats
impl Debug for WorkerStats
Source§impl<'de> Deserialize<'de> for WorkerStats
impl<'de> Deserialize<'de> for WorkerStats
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
Source§impl PartialEq for WorkerStats
impl PartialEq for WorkerStats
Source§impl PartialOrd for WorkerStats
impl PartialOrd for WorkerStats
Source§impl Serialize for WorkerStats
impl Serialize for WorkerStats
impl StructuralPartialEq for WorkerStats
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