#[non_exhaustive]pub enum ForkError {
ReseedFailed(&'static str),
InvalidBlockHash(&'static str),
StateCorrupted,
}Expand description
Fork detection errors
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReseedFailed(&'static str)
Fork detected but reseeding failed
InvalidBlockHash(&'static str)
Invalid block hash format
StateCorrupted
Fork detection state corrupted
Trait Implementations§
impl Eq for ForkError
impl StructuralPartialEq for ForkError
Auto Trait Implementations§
impl Freeze for ForkError
impl RefUnwindSafe for ForkError
impl Send for ForkError
impl Sync for ForkError
impl Unpin for ForkError
impl UnwindSafe for ForkError
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