pub enum CommotError {
FileError(Error),
ArgNotFound(String),
}Expand description
Simple errors, like FileError which is converted from [std::io::Error]
ArgNotFound error is given when you run the commot command without giving the file or when the required arg is not
provided by the user.
Variants§
Trait Implementations§
Source§impl Debug for CommotError
impl Debug for CommotError
Source§impl Display for CommotError
impl Display for CommotError
Source§impl Error for CommotError
impl Error for CommotError
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 CommotError
impl !RefUnwindSafe for CommotError
impl Send for CommotError
impl Sync for CommotError
impl Unpin for CommotError
impl UnsafeUnpin for CommotError
impl !UnwindSafe for CommotError
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