Enum uucore::backup_control::BackupError
source · pub enum BackupError {
InvalidArgument(String, String),
AmbiguousArgument(String, String),
BackupImpossible(),
}Expand description
Backup error types.
Errors are currently raised by determine_backup_mode only. All errors
are implemented as UError for uniform handling across utilities.
Variants§
InvalidArgument(String, String)
An invalid argument (e.g. ‘foo’) was given as backup type. First parameter is the argument, second is the arguments origin (CLI or ENV-var)
AmbiguousArgument(String, String)
An ambiguous argument (e.g. ‘n’) was given as backup type. First parameter is the argument, second is the arguments origin (CLI or ENV-var)
BackupImpossible()
Currently unused
Trait Implementations§
source§impl Debug for BackupError
impl Debug for BackupError
source§impl Display for BackupError
impl Display for BackupError
source§impl Error for BackupError
impl Error for BackupError
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<BackupError> for BackupError
impl PartialEq<BackupError> for BackupError
source§fn eq(&self, other: &BackupError) -> bool
fn eq(&self, other: &BackupError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl UError for BackupError
impl UError for BackupError
impl Eq for BackupError
impl StructuralEq for BackupError
impl StructuralPartialEq for BackupError
Auto Trait Implementations§
impl RefUnwindSafe for BackupError
impl Send for BackupError
impl Sync for BackupError
impl Unpin for BackupError
impl UnwindSafe for BackupError
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