pub enum MiningError {
NonceExhausted,
ChainError(ChainStateError),
SignetSigningFailed(String),
}Expand description
Errors that can occur during mining.
Variants§
NonceExhausted
The nonce space was exhausted without finding a valid hash.
ChainError(ChainStateError)
The mined block failed validation when connected to the chain.
SignetSigningFailed(String)
Signet block signing failed (BIP325).
Trait Implementations§
Source§impl Debug for MiningError
impl Debug for MiningError
Source§impl Display for MiningError
impl Display for MiningError
Source§impl Error for MiningError
impl Error for MiningError
1.30.0 · 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()
Source§impl From<ChainStateError> for MiningError
impl From<ChainStateError> for MiningError
Source§fn from(e: ChainStateError) -> Self
fn from(e: ChainStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MiningError
impl RefUnwindSafe for MiningError
impl Send for MiningError
impl Sync for MiningError
impl Unpin for MiningError
impl UnsafeUnpin for MiningError
impl UnwindSafe for MiningError
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