pub enum BlockValidationError {
HashMismatch,
MerkleRootMismatch,
WitnessCommitmentMismatch,
ProofOfWork(ValidationError),
UnsupportedNetwork,
TargetLimit,
}Variants§
HashMismatch
MerkleRootMismatch
WitnessCommitmentMismatch
ProofOfWork(ValidationError)
UnsupportedNetwork
TargetLimit
Trait Implementations§
Source§impl Debug for BlockValidationError
impl Debug for BlockValidationError
Source§impl Display for BlockValidationError
impl Display for BlockValidationError
Source§impl Error for BlockValidationError
impl Error for BlockValidationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BlockValidationError
impl RefUnwindSafe for BlockValidationError
impl Send for BlockValidationError
impl Sync for BlockValidationError
impl Unpin for BlockValidationError
impl UnsafeUnpin for BlockValidationError
impl UnwindSafe for BlockValidationError
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