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
Msg(String)
A convenient variant for String.
Block(BlockError)
Io(Error)
ExistingFileSizeCheck
Fields of ExistingFileSizeCheck
file_path: PathBuf | |
expected_size: u64 | |
actual_size: u64 |
ExistingInfoHash
Fields of ExistingInfoHash
hash: InfoHash |
InfoHashNotFound
Fields of InfoHashNotFound
hash: InfoHash |
Methods
impl TorrentErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for TorrentErrorKind
impl Display for TorrentErrorKind
impl<'a> From<&'a str> for TorrentErrorKind
impl From<String> for TorrentErrorKind
impl From<TorrentError> for TorrentErrorKind
fn from(e: TorrentError) -> Self
Performs the conversion.