pub enum CliError {
InvalidMetricSuffix(String),
InvalidMemoryString(String),
}
Expand description
A collection of custom errors relating to the command line interface for this package.
Variants§
InvalidMetricSuffix(String)
Indicates that a string cannot be parsed into a MetricSuffix
.
InvalidMemoryString(String)
Indicates that a string cannot be parsed into a Memory
.
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)>
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 PartialEq for CliError
impl PartialEq for CliError
impl Eq for CliError
impl StructuralPartialEq for CliError
Auto Trait Implementations§
impl RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin 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