pub enum RestoreRunnerError {
CommandFailed {
sequence: usize,
status: String,
},
JournalLocked {
lock_path: String,
},
Pending {
backup_id: String,
pending_operations: usize,
next_transition_sequence: Option<usize>,
},
Failed {
backup_id: String,
failed_operations: usize,
},
NotReady {
backup_id: String,
reasons: Vec<String>,
},
CommandUnavailable {
backup_id: String,
operation_available: bool,
complete: bool,
blocked_reasons: Vec<String>,
},
ClaimSequenceMismatch {
expected: usize,
actual: Option<usize>,
},
Io(Error),
Json(Error),
Journal(RestoreApplyJournalError),
}Expand description
RestoreRunnerError
Variants§
CommandFailed
JournalLocked
Pending
Failed
NotReady
ClaimSequenceMismatch
Io(Error)
Json(Error)
Journal(RestoreApplyJournalError)
Trait Implementations§
Source§impl Debug for RestoreRunnerError
impl Debug for RestoreRunnerError
Source§impl Display for RestoreRunnerError
impl Display for RestoreRunnerError
Source§impl Error for RestoreRunnerError
impl Error for RestoreRunnerError
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 RestoreRunnerError
impl From<Error> for RestoreRunnerError
Source§impl From<Error> for RestoreRunnerError
impl From<Error> for RestoreRunnerError
Source§impl From<RestoreApplyJournalError> for RestoreRunnerError
impl From<RestoreApplyJournalError> for RestoreRunnerError
Source§fn from(source: RestoreApplyJournalError) -> Self
fn from(source: RestoreApplyJournalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RestoreRunnerError
impl !RefUnwindSafe for RestoreRunnerError
impl Send for RestoreRunnerError
impl Sync for RestoreRunnerError
impl Unpin for RestoreRunnerError
impl UnsafeUnpin for RestoreRunnerError
impl !UnwindSafe for RestoreRunnerError
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