Skip to main content

RestoreCommandError

Enum RestoreCommandError 

Source
pub enum RestoreCommandError {
Show 48 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>, }, DesignConformanceNotReady { backup_id: 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

Fields

§sequence: usize
§status: String
§

RestoreRunModeMismatch

Fields

§backup_id: String
§expected: String
§actual: String
§

RestoreRunStoppedReasonMismatch

Fields

§backup_id: String
§expected: String
§actual: String
§

RestoreRunNextActionMismatch

Fields

§backup_id: String
§expected: String
§actual: String
§

RestoreRunExecutedCountMismatch

Fields

§backup_id: String
§expected: usize
§actual: usize
§

RestoreRunReceiptCountMismatch

Fields

§backup_id: String
§expected: usize
§actual: usize
§

RestoreRunReceiptKindCountMismatch

Fields

§backup_id: String
§receipt_kind: &'static str
§expected: usize
§actual: usize
§

RestoreRunReceiptUpdatedAtMismatch

Fields

§backup_id: String
§expected: String
§actual_receipts: usize
§mismatched_receipts: usize
§

RestoreRunBatchRemainingReadyCountMismatch

Fields

§backup_id: String
§expected: usize
§actual: usize
§

RestoreRunBatchInitialReadyCountMismatch

Fields

§backup_id: String
§expected: usize
§actual: usize
§

RestoreRunBatchExecutedCountMismatch

Fields

§backup_id: String
§expected: usize
§actual: usize
§

RestoreRunBatchReadyDeltaMismatch

Fields

§backup_id: String
§expected: isize
§actual: isize
§

RestoreRunBatchRemainingDeltaMismatch

Fields

§backup_id: String
§expected: isize
§actual: isize
§

RestoreRunBatchStoppedByMaxStepsMismatch

Fields

§backup_id: String
§expected: bool
§actual: bool
§

RestoreRunStateUpdatedAtMismatch

Fields

§backup_id: String
§expected: String
§actual: Option<String>
§

RestoreNotReady

Fields

§backup_id: String
§reasons: Vec<String>
§

DesignConformanceNotReady

Fields

§backup_id: String
§

RestoreApplyPending

Fields

§backup_id: String
§pending_operations: usize
§next_transition_sequence: Option<usize>
§

RestoreApplyPendingStale

Fields

§backup_id: String
§cutoff_updated_at: String
§pending_sequence: Option<usize>
§pending_updated_at: Option<String>
§

RestoreApplyIncomplete

Fields

§backup_id: String
§completed_operations: usize
§operation_count: usize
§

RestoreApplyFailed

Fields

§backup_id: String
§failed_operations: usize
§

RestoreApplyNotReady

Fields

§backup_id: String
§reasons: Vec<String>
§

RestoreApplyReportNeedsAttention

Fields

§backup_id: String
§

RestoreApplyProgressMismatch

Fields

§backup_id: String
§field: &'static str
§expected: usize
§actual: usize
§

RestoreApplyCommandUnavailable

Fields

§backup_id: String
§operation_available: bool
§complete: bool
§blocked_reasons: Vec<String>
§

RestoreApplyMarkRequiresPending

§

RestoreApplyClaimSequenceMismatch

Fields

§expected: usize
§actual: Option<usize>
§

RestoreApplyUnclaimSequenceMismatch

Fields

§expected: usize
§actual: Option<usize>
§

UnknownOption(String)

§

MissingValue(&'static str)

§

InvalidSequence

§

InvalidPositiveInteger

Fields

§option: &'static str
§

InvalidInteger

Fields

§option: &'static str
§

InvalidBoolean

Fields

§option: &'static str
§value: String
§

InvalidApplyMarkState(String)

§

Io(Error)

§

Json(Error)

§

Persistence(PersistenceError)

§

RestorePlan(RestorePlanError)

§

RestoreApplyDryRun(RestoreApplyDryRunError)

§

RestoreApplyJournal(RestoreApplyJournalError)

Trait Implementations§

Source§

impl Debug for RestoreCommandError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RestoreCommandError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for RestoreCommandError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for RestoreCommandError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RestoreCommandError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<PersistenceError> for RestoreCommandError

Source§

fn from(source: PersistenceError) -> Self

Converts to this type from the input type.
Source§

impl From<RestoreApplyDryRunError> for RestoreCommandError

Source§

fn from(source: RestoreApplyDryRunError) -> Self

Converts to this type from the input type.
Source§

impl From<RestoreApplyJournalError> for RestoreCommandError

Source§

fn from(source: RestoreApplyJournalError) -> Self

Converts to this type from the input type.
Source§

impl From<RestoreCommandError> for BackupCommandError

Source§

fn from(source: RestoreCommandError) -> Self

Converts to this type from the input type.
Source§

impl From<RestoreCommandError> for CliError

Source§

fn from(source: RestoreCommandError) -> Self

Converts to this type from the input type.
Source§

impl From<RestorePlanError> for RestoreCommandError

Source§

fn from(source: RestorePlanError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.