pub enum CliError {
Usage(String),
Display(String),
Config(String),
Storage(String),
NotFound(String),
Unsupported(String),
Io {
path: PathBuf,
source: Error,
},
Run(String),
Serialization(String),
}Expand description
CLI failure.
Variants§
Usage(String)
Command-line parser failed.
Display(String)
Command-line parser requested display output.
Config(String)
Configuration loading failed.
Storage(String)
Local storage failed.
NotFound(String)
Requested record was missing.
Unsupported(String)
Optional product capability is not installed or does not support the request.
Io
Filesystem operation failed.
Run(String)
Runtime execution failed.
Serialization(String)
Serialization failed.
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
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 !RefUnwindSafe for CliError
impl !UnwindSafe for CliError
impl Freeze for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin 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