Enum bip_disk::error::TorrentErrorKind []

pub enum TorrentErrorKind {
    Msg(String),
    Block(BlockError),
    Io(Error),
    ExistingFileSizeCheck {
        file_path: PathBuf,
        expected_size: u64,
        actual_size: u64,
    },
    ExistingInfoHash {
        hash: InfoHash,
    },
    InfoHashNotFound {
        hash: InfoHash,
    },
}

The kind of an error.

Variants

A convenient variant for String.

Fields of ExistingFileSizeCheck

Fields of ExistingInfoHash

Fields of InfoHashNotFound

Methods

impl TorrentErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for TorrentErrorKind

Formats the value using the given formatter.

impl Display for TorrentErrorKind

Formats the value using the given formatter. Read more

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

Performs the conversion.

impl From<String> for TorrentErrorKind

Performs the conversion.

impl From<TorrentError> for TorrentErrorKind

Performs the conversion.