Enum ethcore::error::ImportErrorKind
[−]
pub enum ImportErrorKind { Msg(String), AlreadyInChain, AlreadyQueued, KnownBad, // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
AlreadyInChain
Already in the block chain.
AlreadyQueued
Already in the block queue
KnownBad
Already marked as bad from a previous import (could mean parent is bad).
Methods
impl ImportErrorKind
impl ImportErrorKind
pub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<ImportErrorKind> for ImportError
impl From<ImportErrorKind> for ImportError
fn from(e: ImportErrorKind) -> Self
fn from(e: ImportErrorKind) -> Self
Performs the conversion.
impl Debug for ImportErrorKind
impl Debug for ImportErrorKind
fn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ImportErrorKind
impl Display for ImportErrorKind
impl<'a> From<&'a str> for ImportErrorKind
impl<'a> From<&'a str> for ImportErrorKind
impl From<String> for ImportErrorKind
impl From<String> for ImportErrorKind
impl From<ImportError> for ImportErrorKind
impl From<ImportError> for ImportErrorKind
fn from(e: ImportError) -> Self
fn from(e: ImportError) -> Self
Performs the conversion.
impl From<ImportErrorKind> for BlockImportErrorKind
impl From<ImportErrorKind> for BlockImportErrorKind
Import error
fn from(e: ImportErrorKind) -> Self
fn from(e: ImportErrorKind) -> Self
Performs the conversion.
impl From<ImportErrorKind> for ErrorKind
impl From<ImportErrorKind> for ErrorKind
Error concerning block import.
fn from(e: ImportErrorKind) -> Self
fn from(e: ImportErrorKind) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for ImportErrorKind
impl Send for ImportErrorKind
impl Sync for ImportErrorKind
impl Sync for ImportErrorKind