pub struct SolveConfig {
pub thread_count: usize,
pub use_multithreaded: bool,
}Expand description
Configuration for proof-of-work challenge solving.
thread_count: Number of threads to use for solving.use_multithreaded: Whether to use multithreaded solving
Fields§
§thread_count: usize§use_multithreaded: boolImplementations§
Source§impl SolveConfig
impl SolveConfig
Sourcepub fn new(config: &ClientConfig, use_multithreaded: bool) -> Self
pub fn new(config: &ClientConfig, use_multithreaded: bool) -> Self
Trait Implementations§
Source§impl Clone for SolveConfig
impl Clone for SolveConfig
Source§fn clone(&self) -> SolveConfig
fn clone(&self) -> SolveConfig
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 moreAuto Trait Implementations§
impl Freeze for SolveConfig
impl RefUnwindSafe for SolveConfig
impl Send for SolveConfig
impl Sync for SolveConfig
impl Unpin for SolveConfig
impl UnwindSafe for SolveConfig
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