#[repr(C)]
pub struct SolverParams {
Show 19 fields pub nthreads: uint32_t, pub ntrims: uint32_t, pub showcycle: bool, pub allrounds: bool, pub mutate_nonce: bool, pub cpuload: bool, pub device: u32, pub blocks: u32, pub tpb: u32, pub expand: u32, pub genablocks: u32, pub genatpb: u32, pub genbtpb: u32, pub trimtpb: u32, pub tailtpb: u32, pub recoverblocks: u32, pub recovertpb: u32, pub platform: u32, pub edge_bits: u32,
}
Expand description

Common parameters for a solver

Fields§

§nthreads: uint32_t

threads

§ntrims: uint32_t

trims

§showcycle: bool

Whether to show cycle (should be true to get solutions)

§allrounds: bool

allrounds

§mutate_nonce: bool

whether to apply the nonce to the header, or leave as is, letting caller mutate nonce

§cpuload: bool

reduce cpuload

§device: u32

Common Cuda params

§blocks: u32

Lean cuda params

§tpb: u32
§expand: u32

Mean cuda params

§genablocks: u32
§genatpb: u32
§genbtpb: u32
§trimtpb: u32
§tailtpb: u32
§recoverblocks: u32
§recovertpb: u32
§platform: u32

OCL platform ID, 0 - default, 1 - AMD, 2 - NVIDIA

§edge_bits: u32

edge bits for OCL plugins

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. 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.