pub struct RestoreContext<'a> {
pub env: &'a str,
pub master: &'a NodeTarget,
pub host: &'a dyn ApplyHost,
pub deploy: &'a dyn DeployApi,
pub clock: &'a dyn Clock,
pub hold: &'a HoldModel,
pub poll: &'a PollConfig,
}Expand description
What restore_snapshot drives. It names no declared repo: a manual
rollback (23-11) has only the target file and a run id.
Fields§
§env: &'a strThe --env value, named in the retry command of a rollback_failed.
master: &'a NodeTargetThe target’s master node (where the journal lives, for the error).
host: &'a dyn ApplyHostThe write seam of the master’s host.
deploy: &'a dyn DeployApiThe gateway REST surface (lock, scan, mode).
clock: &'a dyn ClockThe monotonic clock the lock is judged by.
hold: &'a HoldModelThe hold a fresh lock is requested with, and its estimates.
poll: &'a PollConfigHow the scan wait polls.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RestoreContext<'a>
impl<'a> !UnwindSafe for RestoreContext<'a>
impl<'a> Freeze for RestoreContext<'a>
impl<'a> Send for RestoreContext<'a>
impl<'a> Sync for RestoreContext<'a>
impl<'a> Unpin for RestoreContext<'a>
impl<'a> UnsafeUnpin for RestoreContext<'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