pub trait PowStrategy: Clone + Sync {
// Required methods
fn new(challenge: [u8; 32], bits: f64) -> Self;
fn check(&mut self, nonce: u64) -> bool;
// Provided method
fn solve(&mut self) -> Option<u64> { ... }
}
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.