pub struct UndoOutcome {
pub restored: CheckpointRecord,
pub safety: CheckpointRecord,
pub trackers: Vec<UndoTrackerOutcome>,
pub resources: Vec<UndoResourceOutcome>,
pub recovery_record: Option<Utf8PathBuf>,
pub warnings: Vec<String>,
}Fields§
§restored: CheckpointRecordThe checkpoint that was restored.
safety: CheckpointRecordSafety checkpoint taken first — restoring it again is redo.
trackers: Vec<UndoTrackerOutcome>§resources: Vec<UndoResourceOutcome>§recovery_record: Option<Utf8PathBuf>Written when any resource restore failed.
warnings: Vec<String>Implementations§
Source§impl UndoOutcome
impl UndoOutcome
Sourcepub fn failed_resources(&self) -> Vec<&str>
pub fn failed_resources(&self) -> Vec<&str>
Resources whose restore failed.
A restore command is not transactional: one that fails halfway (reset the schema, then fail to load the rows) leaves its resource in neither the pre-undo state nor the checkpoint state. newgit cannot fix that, but it must not describe the instance as restored when it happened.
pub fn is_complete(&self) -> bool
Trait Implementations§
Source§impl Clone for UndoOutcome
impl Clone for UndoOutcome
Source§fn clone(&self) -> UndoOutcome
fn clone(&self) -> UndoOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UndoOutcome
impl Debug for UndoOutcome
impl Eq for UndoOutcome
Source§impl PartialEq for UndoOutcome
impl PartialEq for UndoOutcome
impl StructuralPartialEq for UndoOutcome
Auto Trait Implementations§
impl Freeze for UndoOutcome
impl RefUnwindSafe for UndoOutcome
impl Send for UndoOutcome
impl Sync for UndoOutcome
impl Unpin for UndoOutcome
impl UnsafeUnpin for UndoOutcome
impl UnwindSafe for UndoOutcome
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