pub enum ErrorKind {
Show 17 variants
Msg(String),
Import(ImportErrorKind),
Queue(QueueErrorKind),
Io(IoError),
StdIo(Error),
Trie(TrieError),
Execution(ExecutionError),
Block(BlockError),
Transaction(TransactionError),
Snappy(InvalidInput),
Engine(EngineError),
Ethkey(EthkeyError),
Decoder(DecoderError),
Snapshot(SnapshotError),
PowHashInvalid,
PowInvalid,
UnknownEngineName(String),
// some variants omitted
}
Expand description
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Import(ImportErrorKind)
Error concerning block import.
Queue(QueueErrorKind)
Io channel queue error
Io(IoError)
Io create error
StdIo(Error)
Error concerning the Rust standard library’s IO subsystem.
Trie(TrieError)
Error concerning TrieDBs.
Execution(ExecutionError)
Error concerning EVM code execution.
Block(BlockError)
Error concerning block processing.
Transaction(TransactionError)
Error concerning transaction processing.
Snappy(InvalidInput)
Snappy error.
Engine(EngineError)
Consensus vote error.
Ethkey(EthkeyError)
Ethkey error.
Decoder(DecoderError)
RLP decoding errors
Snapshot(SnapshotError)
Snapshot error.
PowHashInvalid
PoW hash is invalid or out of date.
PowInvalid
The value of the nonce or mishash is invalid.
UnknownEngineName(String)
Unknown engine given
Implementations
sourceimpl ErrorKind
impl ErrorKind
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
sourceimpl From<ImportErrorKind> for ErrorKind
impl From<ImportErrorKind> for ErrorKind
Error concerning block import.
sourcefn from(e: ImportErrorKind) -> Self
fn from(e: ImportErrorKind) -> Self
Performs the conversion.
sourceimpl From<QueueErrorKind> for ErrorKind
impl From<QueueErrorKind> for ErrorKind
Io channel queue error
sourcefn from(e: QueueErrorKind) -> Self
fn from(e: QueueErrorKind) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more