Enum bip_disk::error::BlockErrorKind []

pub enum BlockErrorKind {
    Msg(String),
    Io(Error),
    InfoHashNotFound {
        hash: InfoHash,
    },
    // some variants omitted
}

The kind of an error.

Variants

A convenient variant for String.

Fields of InfoHashNotFound

Methods

impl BlockErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for BlockErrorKind

Formats the value using the given formatter.

impl Display for BlockErrorKind

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for BlockErrorKind

Performs the conversion.

impl From<String> for BlockErrorKind

Performs the conversion.

impl From<BlockError> for BlockErrorKind

Performs the conversion.