pub enum CliError {
Usage(String),
Refusals(Vec<Refusal>),
Engine(EngineError),
BadTempo(String),
BadProbe(String),
Io(String),
NotFound(String),
Conflict {
by: &'static str,
message: String,
},
LintRefused(Vec<LintViolation>),
}Expand description
Every expected failure mode this crate can hit; none of them a panic.
Variants§
Usage(String)
Refusals(Vec<Refusal>)
Engine(EngineError)
BadTempo(String)
BadProbe(String)
Io(String)
NotFound(String)
A path the caller named that nothing answers for; an Io is one that is there.
Conflict
A name already taken, as opposed to an Io the filesystem raised.
LintRefused(Vec<LintViolation>)
Every LintViolation the scan found, not just the first.
Implementations§
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for CliError
impl RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
impl UnwindSafe for CliError
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