pub struct ApplyContext<'a> {
pub declared: &'a Declared,
pub repo: &'a Path,
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 the engine drives.
Fields§
§declared: &'a DeclaredThe declared repo, rendered.
repo: &'a PathThe repo root (the run directory lives below it).
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, read-back).
gateway: &'a dyn GatewayApiThe gateway log and WebDev surface (verify).
backup: Option<&'a BackupNode<'a>>The backup node (a read-only handle), when the target has a backup
node (the mode_backup preflight).
clock: &'a dyn ClockThe monotonic clock the lock is judged by.
observer: &'a dyn ApplyObserverHears each step.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ApplyContext<'a>
impl<'a> !UnwindSafe for ApplyContext<'a>
impl<'a> Freeze for ApplyContext<'a>
impl<'a> Send for ApplyContext<'a>
impl<'a> Sync for ApplyContext<'a>
impl<'a> Unpin for ApplyContext<'a>
impl<'a> UnsafeUnpin for ApplyContext<'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