pub enum YabsErrorKind {
Msg(String),
Io(Error),
TomlDe(Error),
WalkDir(Error),
SetLog(SetLoggerError),
UTF8(FromUtf8Error),
Regex(Error),
NoAssumedToml(String),
Command(String, i32),
DirExists(PathBuf),
TargetNotFound(String, String),
}
Expand description
The kind of an error.
Variants§
Msg(String)
A convenient variant for String.
Io(Error)
TomlDe(Error)
WalkDir(Error)
SetLog(SetLoggerError)
UTF8(FromUtf8Error)
Regex(Error)
NoAssumedToml(String)
Command(String, i32)
DirExists(PathBuf)
TargetNotFound(String, String)
Implementations§
Source§impl YabsErrorKind
impl YabsErrorKind
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations§
Source§impl Debug for YabsErrorKind
impl Debug for YabsErrorKind
Source§impl Display for YabsErrorKind
impl Display for YabsErrorKind
Source§impl<'a> From<&'a str> for YabsErrorKind
impl<'a> From<&'a str> for YabsErrorKind
Source§impl From<String> for YabsErrorKind
impl From<String> for YabsErrorKind
Source§impl From<YabsError> for YabsErrorKind
impl From<YabsError> for YabsErrorKind
Source§impl From<YabsErrorKind> for YabsError
impl From<YabsErrorKind> for YabsError
Source§fn from(e: YabsErrorKind) -> Self
fn from(e: YabsErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for YabsErrorKind
impl !RefUnwindSafe for YabsErrorKind
impl Send for YabsErrorKind
impl Sync for YabsErrorKind
impl Unpin for YabsErrorKind
impl !UnwindSafe for YabsErrorKind
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