pub struct RollbackContext<'a> {
pub env: &'a str,
pub repo: &'a Path,
pub target_file: &'a str,
pub target: &'a Target,
pub reader: &'a dyn TreeReader,
pub host: &'a dyn ApplyHost,
pub deploy: &'a dyn DeployApi,
pub gateway: &'a dyn GatewayApi,
pub backup: Option<&'a BackupNode<'a>>,
pub clock: &'a dyn Clock,
pub observer: &'a dyn ApplyObserver,
}Expand description
What a rollback drives. The target file names the gateway, the mode and the master node; nothing else of the declared repo is read.
Fields§
§env: &'a strThe --env value.
repo: &'a PathThe repo root (the run directories live below it).
target_file: &'a strRepo-relative path of the target file (targets/<env>.yaml).
target: &'a TargetThe parsed target.
reader: &'a dyn TreeReaderThe read half of the master’s host.
host: &'a dyn ApplyHostThe write seam of the master’s host.
deploy: &'a dyn DeployApiThe gateway REST surface (lock, scan, mode, restart list).
gateway: &'a dyn GatewayApiThe gateway surface the preflights read (identity, Designers).
backup: Option<&'a BackupNode<'a>>The backup node (a read-only handle), when the target has one.
clock: &'a dyn ClockThe monotonic clock the lock is judged by.
observer: &'a dyn ApplyObserverHears each step.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RollbackContext<'a>
impl<'a> !UnwindSafe for RollbackContext<'a>
impl<'a> Forget for RollbackContext<'a>
impl<'a> Freeze for RollbackContext<'a>
impl<'a> Send for RollbackContext<'a>
impl<'a> Sync for RollbackContext<'a>
impl<'a> Unpin for RollbackContext<'a>
impl<'a> UnsafeUnpin for RollbackContext<'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