Enum ethcore::error::BlockImportErrorKind
[−]
pub enum BlockImportErrorKind { Msg(String), Import(ImportErrorKind), Block(BlockError), Decoder(DecoderError), Other(String), // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Import(ImportErrorKind)
Import error
Block(BlockError)
Block error
Decoder(DecoderError)
Rlp decoding error
Other(String)
Other error
Methods
impl BlockImportErrorKind
impl BlockImportErrorKind
pub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<BlockImportErrorKind> for BlockImportError
impl From<BlockImportErrorKind> for BlockImportError
fn from(e: BlockImportErrorKind) -> Self
fn from(e: BlockImportErrorKind) -> Self
Performs the conversion.
impl Debug for BlockImportErrorKind
impl Debug for BlockImportErrorKind
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 BlockImportErrorKind
impl Display for BlockImportErrorKind
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<'a> From<&'a str> for BlockImportErrorKind
impl<'a> From<&'a str> for BlockImportErrorKind
impl From<String> for BlockImportErrorKind
impl From<String> for BlockImportErrorKind
impl From<BlockImportError> for BlockImportErrorKind
impl From<BlockImportError> for BlockImportErrorKind
fn from(e: BlockImportError) -> Self
fn from(e: BlockImportError) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for BlockImportErrorKind
impl Send for BlockImportErrorKind
impl Sync for BlockImportErrorKind
impl Sync for BlockImportErrorKind