Enum uucore::backup_control::BackupError [−][src]
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 [UCustomError
] for uniform handling across utilities.
Variants
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)
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)
Currently unused
Tuple Fields of BackupImpossible
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.