pub struct MinerStats {
pub tasks_completed: u64,
pub tasks_failed: u64,
pub total_compute_time: u64,
pub average_compute_time: f64,
}Expand description
Aggregate stats for a miner (completed/failed tasks, compute time).
Fields§
§tasks_completed: u64Number of tasks completed successfully.
tasks_failed: u64Number of tasks that failed.
total_compute_time: u64Total compute time in ms.
average_compute_time: f64Average compute time per task.
Trait Implementations§
Source§impl Clone for MinerStats
impl Clone for MinerStats
Source§fn clone(&self) -> MinerStats
fn clone(&self) -> MinerStats
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 MinerStats
impl Debug for MinerStats
Source§impl Default for MinerStats
impl Default for MinerStats
Source§fn default() -> MinerStats
fn default() -> MinerStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MinerStats
impl<'de> Deserialize<'de> for MinerStats
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
Auto Trait Implementations§
impl Freeze for MinerStats
impl RefUnwindSafe for MinerStats
impl Send for MinerStats
impl Sync for MinerStats
impl Unpin for MinerStats
impl UnsafeUnpin for MinerStats
impl UnwindSafe for MinerStats
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