pub struct Transaction {Show 24 fields
pub id: TxnId,
pub state: TxnState,
pub lease: Lease,
pub base_source: Option<Hash>,
pub staged_source: Option<Hash>,
pub candidate_nar: Option<Hash>,
pub base_override: Option<Hash>,
pub candidate_override: Option<Hash>,
pub gc_root: Option<String>,
pub recovery: RecoveryStrategy,
pub transition: Transition,
pub facts: DerivedFacts,
pub base: GenerationId,
pub candidate: Option<(GenerationId, StorePath)>,
pub policy: PolicyVersion,
pub approval: Option<ApprovalToken>,
pub snapshot: Option<SnapshotId>,
pub expected: Expectation,
pub started: Timestamp,
pub deadline: Timestamp,
pub revert_to: GenerationId,
pub prior_driver: Option<DriverRef>,
pub check: CheckContext,
pub prepared_again_from: Option<TxnId>,
}Fields§
§id: TxnId§state: TxnState§lease: Lease§base_source: Option<Hash>NAR hash of the owner’s source with the BASE override, at Prepared (§9).
staged_source: Option<Hash>NAR hash of the candidate tree actually evaluated and built (§9).
candidate_nar: Option<Hash>The candidate store path’s NAR hash, as the store reported it when it
was built; verify_candidate checks the path against it (§9 step 3,
C6). None for a generation not built by this transaction.
base_override: Option<Hash>§candidate_override: Option<Hash>§gc_root: Option<String>/nix/var/nix/gcroots/planarian/builds/<staged_source>, adopted at Prepared (I3).
recovery: RecoveryStrategy§transition: Transition§facts: DerivedFacts§base: GenerationId§candidate: Option<(GenerationId, StorePath)>§policy: PolicyVersion§approval: Option<ApprovalToken>§snapshot: Option<SnapshotId>§expected: Expectation§started: Timestamp§deadline: TimestampThe watchdog acts after this.
revert_to: GenerationIdFixed at Prepared; authorized with the transaction.
prior_driver: Option<DriverRef>For BindDriver: the driver bound at Prepared, rebound on revert (§12
execution table). Not in §8 (G12).
check: CheckContextWhat the probe check needs, journaled so the watchdog can run it alone.
prepared_again_from: Option<TxnId>§12f: the withdrawn transaction this one prepares again (from its proposal). Absent in records from before it.
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more