pub enum ApplyEvent {
Show 26 variants
RunStarted {
run_id: String,
writes: usize,
deletes: usize,
},
Staged {
files: usize,
},
LockAcquired {
hold_s: u64,
},
Committed {
moved: usize,
deleted: usize,
},
LockVerdict {
held: bool,
},
ScanDone,
VerifyDone {
ok: bool,
},
Finalized,
CommitInterrupted {
code: String,
},
VerifyChecks {
checks: Vec<(String, String)>,
},
RestoreStarted {
cause: Option<RollbackCause>,
},
LiveChangesDiscarded {
count: usize,
paths: Vec<String>,
},
Restored,
Cleared,
InterruptedRun {
phase: &'static str,
action: &'static str,
hashes: BTreeMap<String, Option<String>>,
},
PreflightChecks {
checks: Vec<(String, String)>,
},
DesignersPoll {
open: usize,
},
DesignersProceed {
sessions: Vec<DesignerSeen>,
},
GwbkDownloaded {
bytes: u64,
},
GwbkSkipped,
BackupSampled {
last_sync: Option<i64>,
},
BackupWaitStarted {
budget_s: u64,
},
BackupPoll {
peer_connected: bool,
sync_pending: bool,
advanced: bool,
},
BackupResync {
ok: bool,
code: Option<String>,
},
BackupVerdict {
converged: bool,
reason: Option<&'static str>,
},
Failed {
code: String,
},
}Expand description
One step of a run, value-free: ids, counts and flags only.
Variants§
RunStarted
The run directory exists.
Staged
prepare staged the batch.
LockAcquired
The scan-lock was taken.
Committed
commit returned.
LockVerdict
The lock was judged after the commit.
ScanDone
The config scan completed.
VerifyDone
deploy_verify answered.
Finalized
The run was finalized.
CommitInterrupted
commit returned an error and this run’s journal is still on the box:
what is on the host is unknown and the run is recovered with
rollback --run (23-12). Carries the code of the original failure.
VerifyChecks
The checks of a red verdict, by id and status.
RestoreStarted
A restore began (23-17). None is a manual rollback (23-11): the
closed data.cause vocabulary of an apply is unchanged.
Fields
cause: Option<RollbackCause>Why an apply is being undone; None for a manual rollback.
LiveChangesDiscarded
A rollback went ahead over live changes made after the run
(--discard-live-changes, 23-11): the first paths and the count.
Fields
paths: Vec<String>The first crate::error::APPLY_LIST_SHOWN, byte-sorted.
Restored
The restore finished (23-17).
Cleared
A recovery removed an interrupted run that had changed nothing (23-12, D-10).
InterruptedRun
A rollback found that the run it recovers was interrupted (23-12,
D-09, D-11): the journal’s phase, what recovery will do and the live
hash of each path of the journal’s touched list (None when absent).
Fields
PreflightChecks
The preflights found a failed check; every verdict, by id and status.
DesignersPoll
The Designer list was read under --designers wait.
DesignersProceed
--designers proceed went ahead over these open sessions (D-15).
Fields
sessions: Vec<DesignerSeen>(user, project, host) of each open session.
GwbkDownloaded
The .gwbk was downloaded and read as a ZIP (23-09).
GwbkSkipped
--skip-gwbk: no .gwbk was taken (23-09).
BackupSampled
The backup’s sync timestamp was sampled (V3, D-05). Twice per run: after the preflights (the fail-fast read) and again once the lock is held, just before the commit (WR-02); the second is the baseline.
BackupWaitStarted
The wait for the backup began, after the snapshot download (V3).
BackupPoll
One look at the backup’s status (V3).
Fields
BackupResync
The one resync request was sent to the master (V3, D-07).
BackupVerdict
The backup phase ended (V3).
Failed
The run failed.
Implementations§
Trait Implementations§
Source§impl Clone for ApplyEvent
impl Clone for ApplyEvent
Source§impl Debug for ApplyEvent
impl Debug for ApplyEvent
impl Eq for ApplyEvent
Source§impl PartialEq for ApplyEvent
impl PartialEq for ApplyEvent
impl StructuralPartialEq for ApplyEvent
Auto Trait Implementations§
impl Freeze for ApplyEvent
impl RefUnwindSafe for ApplyEvent
impl Send for ApplyEvent
impl Sync for ApplyEvent
impl Unpin for ApplyEvent
impl UnsafeUnpin for ApplyEvent
impl UnwindSafe for ApplyEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.