pub trait PoWChallenge {
// Required method
fn challenge_pow<S: PowStrategy>(&mut self, bits: f64) -> ProofResult<()>;
}
Required Methods§
Sourcefn challenge_pow<S: PowStrategy>(&mut self, bits: f64) -> ProofResult<()>
fn challenge_pow<S: PowStrategy>(&mut self, bits: f64) -> ProofResult<()>
Extension trait for generating a proof-of-work challenge.
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.