#[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§

return device name as rust string

return plugin name as rust string

return plugin name as rust string

set plugin name

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.