pub struct RollbackFailure {
pub run_id: String,
pub env: String,
pub run_dir: Option<String>,
pub journal: String,
pub cause: String,
pub scope: RollbackScope,
}Expand description
Payload of CoreError::RollbackFailed (23-02).
Fields§
§run_id: StringThe run being restored.
env: StringThe --env value the retry command needs.
run_dir: Option<String>The local run directory holding the snapshot, when one was made.
journal: StringThe on-box journal path, left in place for a manual recovery.
cause: StringWhy the restore failed; names paths and causes, never file content.
scope: RollbackScopeWhich rollback failed: the file engine’s (its retry command and
on-box snapshot apply) or a deploy projects run’s (26-11).
Implementations§
Source§impl RollbackFailure
impl RollbackFailure
Sourcepub fn is_undo(&self) -> bool
pub fn is_undo(&self) -> bool
Whether this is the failure of a --rollback-run undo, whose cause
word is rollback_run and whose pre-images the gateway host keeps
(26-REVIEW IN-06).
Sourcepub fn snapshot_dir(&self) -> String
pub fn snapshot_dir(&self) -> String
The on-box directory holding the run’s pre-images
(snapshots/<run>/), next to the journal.
Trait Implementations§
Source§impl Clone for RollbackFailure
impl Clone for RollbackFailure
Source§impl Debug for RollbackFailure
impl Debug for RollbackFailure
Source§impl Display for RollbackFailure
impl Display for RollbackFailure
impl Eq for RollbackFailure
Source§impl PartialEq for RollbackFailure
impl PartialEq for RollbackFailure
impl StructuralPartialEq for RollbackFailure
Auto Trait Implementations§
impl Forget for RollbackFailure
impl Freeze for RollbackFailure
impl Move for RollbackFailure
impl RefUnwindSafe for RollbackFailure
impl Send for RollbackFailure
impl Sync for RollbackFailure
impl Unpin for RollbackFailure
impl UnsafeUnpin for RollbackFailure
impl UnwindSafe for RollbackFailure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.