Struct grin_miner_plugin::SolverStats
source · #[repr(C)]pub struct SolverStats {
pub device_id: uint32_t,
pub edge_bits: uint32_t,
pub plugin_name: [c_uchar; 256],
pub device_name: [c_uchar; 256],
pub has_errored: bool,
pub error_reason: [c_uchar; 256],
pub iterations: uint32_t,
pub last_start_time: uint64_t,
pub last_end_time: uint64_t,
pub last_solution_time: uint64_t,
}
Expand description
Common stats collected by solvers
Fields§
§device_id: uint32_t
device Id
edge_bits: uint32_t
graph size
plugin_name: [c_uchar; 256]
plugin name
device_name: [c_uchar; 256]
device name
has_errored: bool
whether device has reported an error
error_reason: [c_uchar; 256]
reason for error
iterations: uint32_t
number of searched completed by device
last_start_time: uint64_t
last solution start time
last_end_time: uint64_t
last solution end time
last_solution_time: uint64_t
last solution elapsed time
Implementations§
source§impl SolverStats
impl SolverStats
sourcepub fn get_device_name(&self) -> String
pub fn get_device_name(&self) -> String
return device name as rust string
sourcepub fn get_plugin_name(&self) -> String
pub fn get_plugin_name(&self) -> String
return plugin name as rust string
sourcepub fn get_error_reason(&self) -> String
pub fn get_error_reason(&self) -> String
return plugin name as rust string
sourcepub fn set_plugin_name(&mut self, name: &str)
pub fn set_plugin_name(&mut self, name: &str)
set plugin name
Trait Implementations§
source§impl Clone for SolverStats
impl Clone for SolverStats
source§fn clone(&self) -> SolverStats
fn clone(&self) -> SolverStats
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 Default for SolverStats
impl Default for SolverStats
source§fn default() -> SolverStats
fn default() -> SolverStats
Returns the “default value” for a type. Read more