pub enum BackupCommandError {
Show 14 variants
Usage(&'static str),
MissingOption(&'static str),
UnknownOption(String),
MissingValue(&'static str),
IncompleteJournal {
backup_id: String,
total_artifacts: usize,
pending_artifacts: usize,
},
InspectionNotReady {
backup_id: String,
backup_id_matches: bool,
topology_receipts_match: bool,
journal_complete: bool,
topology_mismatches: usize,
missing_artifacts: usize,
unexpected_artifacts: usize,
path_mismatches: usize,
checksum_mismatches: usize,
},
ProvenanceNotConsistent {
backup_id: String,
backup_id_matches: bool,
topology_receipts_match: bool,
topology_mismatches: usize,
},
RestoreNotReady {
backup_id: String,
reasons: Vec<String>,
},
DesignConformanceNotReady {
backup_id: String,
},
Io(Error),
Json(Error),
Persistence(PersistenceError),
RestorePlan(RestorePlanError),
RestoreCli(RestoreCommandError),
}Expand description
BackupCommandError
Variants§
Usage(&'static str)
MissingOption(&'static str)
UnknownOption(String)
MissingValue(&'static str)
IncompleteJournal
InspectionNotReady
Fields
ProvenanceNotConsistent
Fields
RestoreNotReady
DesignConformanceNotReady
Io(Error)
Json(Error)
Persistence(PersistenceError)
RestorePlan(RestorePlanError)
RestoreCli(RestoreCommandError)
Trait Implementations§
Source§impl Debug for BackupCommandError
impl Debug for BackupCommandError
Source§impl Display for BackupCommandError
impl Display for BackupCommandError
Source§impl Error for BackupCommandError
impl Error for BackupCommandError
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()
Source§impl From<BackupCommandError> for CliError
impl From<BackupCommandError> for CliError
Source§fn from(source: BackupCommandError) -> Self
fn from(source: BackupCommandError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BackupCommandError
impl From<Error> for BackupCommandError
Source§impl From<Error> for BackupCommandError
impl From<Error> for BackupCommandError
Source§impl From<PersistenceError> for BackupCommandError
impl From<PersistenceError> for BackupCommandError
Source§fn from(source: PersistenceError) -> Self
fn from(source: PersistenceError) -> Self
Converts to this type from the input type.
Source§impl From<RestoreCommandError> for BackupCommandError
impl From<RestoreCommandError> for BackupCommandError
Source§fn from(source: RestoreCommandError) -> Self
fn from(source: RestoreCommandError) -> Self
Converts to this type from the input type.
Source§impl From<RestorePlanError> for BackupCommandError
impl From<RestorePlanError> for BackupCommandError
Source§fn from(source: RestorePlanError) -> Self
fn from(source: RestorePlanError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BackupCommandError
impl !RefUnwindSafe for BackupCommandError
impl Send for BackupCommandError
impl Sync for BackupCommandError
impl Unpin for BackupCommandError
impl UnsafeUnpin for BackupCommandError
impl !UnwindSafe for BackupCommandError
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