pub struct Error {
pub error_code: i32,
pub error_str: String,
}
Expand description
Returns on the failure of Config::new
and Config::exec
.
Fields§
§error_code: i32
An error code expected to be returned when the program ends. An error code of…
0
means that an expected result occured, but the program must end
now, (like in the case of a --help
flag).
1
means there was an error with the arguments inputted.
2
means there was a file related error.
3
means something that a number wasn’t parsed correctly.
4
means a field specified doesn’t exist.
5
means a field tried to be cleared and set at the same time.
6
means that there were no “free parameters”, aka filenames
7
means that there was an error when trying to edit the tags of a file
error_str: String
String expected to be printed right before the end of the program.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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