pub enum BlockErrorKind {
Msg(String),
Io(Error),
InfoHashNotFound {
hash: InfoHash,
},
// some variants omitted
}
Expand description
The kind of an error.
Variants§
Implementations§
Source§impl BlockErrorKind
impl BlockErrorKind
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations§
Source§impl Debug for BlockErrorKind
impl Debug for BlockErrorKind
Source§impl Display for BlockErrorKind
impl Display for BlockErrorKind
Source§impl<'a> From<&'a str> for BlockErrorKind
impl<'a> From<&'a str> for BlockErrorKind
Source§impl From<BlockError> for BlockErrorKind
impl From<BlockError> for BlockErrorKind
Source§fn from(e: BlockError) -> Self
fn from(e: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<BlockErrorKind> for BlockError
impl From<BlockErrorKind> for BlockError
Source§fn from(e: BlockErrorKind) -> Self
fn from(e: BlockErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockErrorKind
impl !RefUnwindSafe for BlockErrorKind
impl Send for BlockErrorKind
impl Sync for BlockErrorKind
impl Unpin for BlockErrorKind
impl !UnwindSafe for BlockErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more