pub enum RestoreCommandError {
Show 47 variants
Usage(&'static str),
MissingOption(&'static str),
ConflictingManifestSources,
RequireVerifiedNeedsBackupDir,
ApplyRequiresDryRun,
RestoreRunRequiresMode,
RestoreRunConflictingModes,
RestoreRunCommandFailed {
sequence: usize,
status: String,
},
RestoreRunModeMismatch {
backup_id: String,
expected: String,
actual: String,
},
RestoreRunStoppedReasonMismatch {
backup_id: String,
expected: String,
actual: String,
},
RestoreRunNextActionMismatch {
backup_id: String,
expected: String,
actual: String,
},
RestoreRunExecutedCountMismatch {
backup_id: String,
expected: usize,
actual: usize,
},
RestoreRunReceiptCountMismatch {
backup_id: String,
expected: usize,
actual: usize,
},
RestoreRunReceiptKindCountMismatch {
backup_id: String,
receipt_kind: &'static str,
expected: usize,
actual: usize,
},
RestoreRunReceiptUpdatedAtMismatch {
backup_id: String,
expected: String,
actual_receipts: usize,
mismatched_receipts: usize,
},
RestoreRunBatchRemainingReadyCountMismatch {
backup_id: String,
expected: usize,
actual: usize,
},
RestoreRunBatchInitialReadyCountMismatch {
backup_id: String,
expected: usize,
actual: usize,
},
RestoreRunBatchExecutedCountMismatch {
backup_id: String,
expected: usize,
actual: usize,
},
RestoreRunBatchReadyDeltaMismatch {
backup_id: String,
expected: isize,
actual: isize,
},
RestoreRunBatchRemainingDeltaMismatch {
backup_id: String,
expected: isize,
actual: isize,
},
RestoreRunBatchStoppedByMaxStepsMismatch {
backup_id: String,
expected: bool,
actual: bool,
},
RestoreRunStateUpdatedAtMismatch {
backup_id: String,
expected: String,
actual: Option<String>,
},
RestoreNotReady {
backup_id: String,
reasons: Vec<String>,
},
RestoreApplyPending {
backup_id: String,
pending_operations: usize,
next_transition_sequence: Option<usize>,
},
RestoreApplyPendingStale {
backup_id: String,
cutoff_updated_at: String,
pending_sequence: Option<usize>,
pending_updated_at: Option<String>,
},
RestoreApplyIncomplete {
backup_id: String,
completed_operations: usize,
operation_count: usize,
},
RestoreApplyFailed {
backup_id: String,
failed_operations: usize,
},
RestoreApplyNotReady {
backup_id: String,
reasons: Vec<String>,
},
RestoreApplyReportNeedsAttention {
backup_id: String,
outcome: RestoreApplyReportOutcome,
},
RestoreApplyProgressMismatch {
backup_id: String,
field: &'static str,
expected: usize,
actual: usize,
},
RestoreApplyCommandUnavailable {
backup_id: String,
operation_available: bool,
complete: bool,
blocked_reasons: Vec<String>,
},
RestoreApplyMarkRequiresPending {
sequence: usize,
state: RestoreApplyOperationState,
},
RestoreApplyClaimSequenceMismatch {
expected: usize,
actual: Option<usize>,
},
RestoreApplyUnclaimSequenceMismatch {
expected: usize,
actual: Option<usize>,
},
UnknownOption(String),
MissingValue(&'static str),
InvalidSequence,
InvalidPositiveInteger {
option: &'static str,
},
InvalidInteger {
option: &'static str,
},
InvalidBoolean {
option: &'static str,
value: String,
},
InvalidApplyMarkState(String),
Io(Error),
Json(Error),
Persistence(PersistenceError),
RestorePlan(RestorePlanError),
RestoreApplyDryRun(RestoreApplyDryRunError),
RestoreApplyJournal(RestoreApplyJournalError),
}Expand description
RestoreCommandError
Variants§
Usage(&'static str)
MissingOption(&'static str)
ConflictingManifestSources
RequireVerifiedNeedsBackupDir
ApplyRequiresDryRun
RestoreRunRequiresMode
RestoreRunConflictingModes
RestoreRunCommandFailed
RestoreRunModeMismatch
RestoreRunStoppedReasonMismatch
RestoreRunNextActionMismatch
RestoreRunExecutedCountMismatch
RestoreRunReceiptCountMismatch
RestoreRunReceiptKindCountMismatch
RestoreRunReceiptUpdatedAtMismatch
RestoreRunBatchRemainingReadyCountMismatch
RestoreRunBatchInitialReadyCountMismatch
RestoreRunBatchExecutedCountMismatch
RestoreRunBatchReadyDeltaMismatch
RestoreRunBatchRemainingDeltaMismatch
RestoreRunBatchStoppedByMaxStepsMismatch
RestoreRunStateUpdatedAtMismatch
RestoreNotReady
RestoreApplyPending
RestoreApplyPendingStale
Fields
RestoreApplyIncomplete
RestoreApplyFailed
RestoreApplyNotReady
RestoreApplyReportNeedsAttention
RestoreApplyProgressMismatch
RestoreApplyMarkRequiresPending
RestoreApplyClaimSequenceMismatch
RestoreApplyUnclaimSequenceMismatch
UnknownOption(String)
MissingValue(&'static str)
InvalidSequence
InvalidPositiveInteger
InvalidInteger
InvalidBoolean
InvalidApplyMarkState(String)
Io(Error)
Json(Error)
Persistence(PersistenceError)
RestorePlan(RestorePlanError)
RestoreApplyDryRun(RestoreApplyDryRunError)
RestoreApplyJournal(RestoreApplyJournalError)
Trait Implementations§
Source§impl Debug for RestoreCommandError
impl Debug for RestoreCommandError
Source§impl Display for RestoreCommandError
impl Display for RestoreCommandError
Source§impl Error for RestoreCommandError
impl Error for RestoreCommandError
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<Error> for RestoreCommandError
impl From<Error> for RestoreCommandError
Source§impl From<Error> for RestoreCommandError
impl From<Error> for RestoreCommandError
Source§impl From<PersistenceError> for RestoreCommandError
impl From<PersistenceError> for RestoreCommandError
Source§fn from(source: PersistenceError) -> Self
fn from(source: PersistenceError) -> Self
Converts to this type from the input type.
Source§impl From<RestoreApplyDryRunError> for RestoreCommandError
impl From<RestoreApplyDryRunError> for RestoreCommandError
Source§fn from(source: RestoreApplyDryRunError) -> Self
fn from(source: RestoreApplyDryRunError) -> Self
Converts to this type from the input type.
Source§impl From<RestoreApplyJournalError> for RestoreCommandError
impl From<RestoreApplyJournalError> for RestoreCommandError
Source§fn from(source: RestoreApplyJournalError) -> Self
fn from(source: RestoreApplyJournalError) -> Self
Converts to this type from the input type.
Source§impl From<RestoreCommandError> for CliError
impl From<RestoreCommandError> for CliError
Source§fn from(source: RestoreCommandError) -> Self
fn from(source: RestoreCommandError) -> Self
Converts to this type from the input type.
Source§impl From<RestorePlanError> for RestoreCommandError
impl From<RestorePlanError> for RestoreCommandError
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 RestoreCommandError
impl !RefUnwindSafe for RestoreCommandError
impl Send for RestoreCommandError
impl Sync for RestoreCommandError
impl Unpin for RestoreCommandError
impl UnsafeUnpin for RestoreCommandError
impl !UnwindSafe for RestoreCommandError
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