pub struct RestoreInput<'a> {
pub run_id: &'a RunId,
pub run_dir: &'a RunDir,
pub record: &'a RunRecord,
pub held: Option<&'a HeldLock>,
pub cause: Option<RollbackCause>,
}Expand description
What restore_snapshot is asked to undo.
Fields§
§run_id: &'a RunIdThe run doing the restoring: for an abort or an auto-rollback the run
itself, for a manual rollback the rollback run (it becomes the
record’s rolled_back_by).
run_dir: &'a RunDirThat run’s directory (named in rollback_failed; the snapshot copy
is downloaded into it).
record: &'a RunRecordThe record of the run being undone: its touched set and pre-images.
held: Option<&'a HeldLock>The scan-lock this engine still holds, when it does.
cause: Option<RollbackCause>Why an apply is being undone; None for a manual rollback (23-11),
which keeps the closed data.cause vocabulary of an apply as it is.
Auto Trait Implementations§
impl<'a> Freeze for RestoreInput<'a>
impl<'a> RefUnwindSafe for RestoreInput<'a>
impl<'a> Send for RestoreInput<'a>
impl<'a> Sync for RestoreInput<'a>
impl<'a> Unpin for RestoreInput<'a>
impl<'a> UnsafeUnpin for RestoreInput<'a>
impl<'a> UnwindSafe for RestoreInput<'a>
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