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
sourceimpl Debug for BackupError
impl Debug for BackupError
sourceimpl Display for BackupError
impl Display for BackupError
sourceimpl Error for BackupError
impl Error for BackupError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl PartialEq<BackupError> for BackupError
impl PartialEq<BackupError> for BackupError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &BackupError) -> bool
fn ne(&self, other: &BackupError) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.