Enum bip_disk::error::BlockErrorKind
[−]
pub enum BlockErrorKind { Msg(String), Io(Error), InfoHashNotFound { hash: InfoHash, }, }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Io(Error)
InfoHashNotFound
Fields of InfoHashNotFound
hash: InfoHash |
Methods
impl BlockErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for BlockErrorKind
impl Display for BlockErrorKind
impl<'a> From<&'a str> for BlockErrorKind
impl From<String> for BlockErrorKind
impl From<BlockError> for BlockErrorKind
fn from(e: BlockError) -> Self
Performs the conversion.