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 BlockImportErrorKindpub fn description(&self) -> &str
pub fn description(&self) -> &strA string describing the error kind.
Trait Implementations
impl From<BlockImportErrorKind> for BlockImportError
impl From<BlockImportErrorKind> for BlockImportErrorfn from(e: BlockImportErrorKind) -> Self
fn from(e: BlockImportErrorKind) -> SelfPerforms the conversion.
impl Debug for BlockImportErrorKind
impl Debug for BlockImportErrorKindimpl Display for BlockImportErrorKind
impl Display for BlockImportErrorKindimpl From<ImportErrorKind> for BlockImportErrorKind
impl From<ImportErrorKind> for BlockImportErrorKindImport error
fn from(e: ImportErrorKind) -> Self
fn from(e: ImportErrorKind) -> SelfPerforms the conversion.
impl<'a> From<&'a str> for BlockImportErrorKind
impl<'a> From<&'a str> for BlockImportErrorKindimpl From<String> for BlockImportErrorKind
impl From<String> for BlockImportErrorKindimpl From<BlockImportError> for BlockImportErrorKind
impl From<BlockImportError> for BlockImportErrorKindfn from(e: BlockImportError) -> Self
fn from(e: BlockImportError) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for BlockImportErrorKind
impl Send for BlockImportErrorKindimpl Sync for BlockImportErrorKind
impl Sync for BlockImportErrorKind