pub enum MyError {
Show 13 variants
Chrono(ParseError),
Clap(Error),
Git(Error),
Glob(PatternError, String),
Io(Error),
Io2(Error, String),
ParseInt(ParseIntError),
PkZip(ZipError, String),
Prefix(StripPrefixError, String),
Regex(Error),
SevenZ(Error, String),
Walk(Error),
Text(String),
}
Variants§
Chrono(ParseError)
Clap(Error)
Git(Error)
Glob(PatternError, String)
Io(Error)
Io2(Error, String)
ParseInt(ParseIntError)
PkZip(ZipError, String)
Prefix(StripPrefixError, String)
Regex(Error)
SevenZ(Error, String)
Walk(Error)
Text(String)
Implementations§
Trait Implementations§
Source§impl Error for MyError
impl Error for MyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<(PatternError, &String)> for MyError
impl From<(PatternError, &String)> for MyError
Source§fn from(value: (PatternError, &String)) -> Self
fn from(value: (PatternError, &String)) -> Self
Converts to this type from the input type.
Source§impl From<(StripPrefixError, &Path)> for MyError
impl From<(StripPrefixError, &Path)> for MyError
Source§fn from(value: (StripPrefixError, &Path)) -> Self
fn from(value: (StripPrefixError, &Path)) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for MyError
impl From<ParseError> for MyError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for MyError
impl From<ParseIntError> for MyError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MyError
impl !RefUnwindSafe for MyError
impl Send for MyError
impl Sync for MyError
impl Unpin for MyError
impl !UnwindSafe for MyError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more