#[non_exhaustive]pub enum ArtifactKnowledgeReason {
Show 14 variants
ProducingActivityMissing {
representation_id: RepresentationId,
},
ProducingActivityAmbiguous {
representation_id: RepresentationId,
activity_count: u32,
},
SnapshotAbsent {
activity_id: ActivityId,
representation_id: RepresentationId,
edge: ArtifactEdgeKind,
},
DependencySnapshotAbsent {
activity_id: ActivityId,
representation_id: RepresentationId,
},
DependencyKnowledgeIncomplete {
activity_id: ActivityId,
input_representation_id: RepresentationId,
subject_representation_id: RepresentationId,
path: Vec<ArtifactDependencyPathSegment>,
issue: ArtifactDependencyIssue,
},
DependencyPathChanged {
activity_id: ActivityId,
input_representation_id: RepresentationId,
path: Vec<ArtifactDependencyPathSegment>,
},
DependencyFingerprintChanged {
activity_id: ActivityId,
input_representation_id: RepresentationId,
representation_id: RepresentationId,
path: Vec<ArtifactDependencyPathSegment>,
algorithm: String,
version: u16,
snapshot_value: Vec<u8>,
current_value: Vec<u8>,
},
DependencyFingerprintRecomputationPending {
activity_id: ActivityId,
input_representation_id: RepresentationId,
representation_id: RepresentationId,
path: Vec<ArtifactDependencyPathSegment>,
},
DependencyFingerprintEvidenceMissing {
activity_id: ActivityId,
input_representation_id: RepresentationId,
representation_id: RepresentationId,
path: Vec<ArtifactDependencyPathSegment>,
algorithm: Option<String>,
version: Option<u16>,
snapshot_value: Option<Vec<u8>>,
current_value: Option<Vec<u8>>,
},
FingerprintEvidenceMissing {
activity_id: ActivityId,
representation_id: RepresentationId,
edge: ArtifactEdgeKind,
algorithm: Option<String>,
version: Option<u16>,
snapshot_value: Option<Vec<u8>>,
current_value: Option<Vec<u8>>,
},
FingerprintChanged {
activity_id: ActivityId,
representation_id: RepresentationId,
edge: ArtifactEdgeKind,
algorithm: String,
version: u16,
snapshot_value: Vec<u8>,
current_value: Vec<u8>,
},
FingerprintRecomputationPending {
activity_id: ActivityId,
representation_id: RepresentationId,
edge: ArtifactEdgeKind,
},
UpstreamNotCurrent {
representation_id: RepresentationId,
state: ArtifactKnowledgeState,
},
TraversalTruncated {
limit: ArtifactTraversalLimitKind,
representation_id: RepresentationId,
},
}Expand description
One user-explainable reason for a non-current knowledge state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ProducingActivityMissing
No activity records how the target representation was produced.
Fields
representation_id: RepresentationIdRepresentation being evaluated.
ProducingActivityAmbiguous
More than one activity claims to have produced the representation.
Fields
representation_id: RepresentationIdRepresentation being evaluated.
SnapshotAbsent
A legacy activity edge has no storage-captured snapshot.
Fields
activity_id: ActivityIdActivity owning the edge.
representation_id: RepresentationIdRepresentation referenced by the edge.
edge: ArtifactEdgeKindWhether this was an input or output edge.
DependencySnapshotAbsent
A legacy activity input has no dependency-closure snapshot.
Fields
activity_id: ActivityIdActivity owning the input.
representation_id: RepresentationIdInput representation whose closure was not captured.
DependencyKnowledgeIncomplete
Captured dependency knowledge was incomplete at activity creation.
Fields
activity_id: ActivityIdActivity owning the input.
input_representation_id: RepresentationIdDirect activity input.
subject_representation_id: RepresentationIdRepresentation at which capture became indeterminate.
path: Vec<ArtifactDependencyPathSegment>Captured typed path to the subject or unresolved edge.
issue: ArtifactDependencyIssueSpecific incomplete-knowledge condition.
DependencyPathChanged
A required authored path no longer matches its captured observation.
Fields
activity_id: ActivityIdActivity owning the input.
input_representation_id: RepresentationIdDirect activity input.
path: Vec<ArtifactDependencyPathSegment>Captured path that changed.
DependencyFingerprintChanged
Current dependency content differs from the captured fingerprint.
Fields
activity_id: ActivityIdActivity owning the input.
input_representation_id: RepresentationIdDirect activity input.
representation_id: RepresentationIdChanged dependency representation.
path: Vec<ArtifactDependencyPathSegment>Captured typed path to the dependency.
DependencyFingerprintRecomputationPending
Dependency content changed and its aggregate fingerprint is not current yet.
Fields
activity_id: ActivityIdActivity owning the input.
input_representation_id: RepresentationIdDirect activity input.
representation_id: RepresentationIdDependency representation awaiting recomputation.
path: Vec<ArtifactDependencyPathSegment>Captured typed path to the dependency.
DependencyFingerprintEvidenceMissing
A dependency lacks comparable captured or current fingerprint evidence.
Fields
activity_id: ActivityIdActivity owning the input.
input_representation_id: RepresentationIdDirect activity input.
representation_id: RepresentationIdDependency representation lacking evidence.
path: Vec<ArtifactDependencyPathSegment>Captured typed path to the dependency.
FingerprintEvidenceMissing
The edge has no comparable fingerprint evidence.
Fields
activity_id: ActivityIdActivity owning the edge.
representation_id: RepresentationIdRepresentation referenced by the edge.
edge: ArtifactEdgeKindWhether this was an input or output edge.
FingerprintChanged
Current content differs from the edge snapshot in one fingerprint domain.
Fields
activity_id: ActivityIdActivity owning the edge.
representation_id: RepresentationIdRepresentation referenced by the edge.
edge: ArtifactEdgeKindWhether this was an input or output edge.
FingerprintRecomputationPending
A resource observation changed and its representation fingerprint has not yet been recomputed.
Fields
activity_id: ActivityIdActivity owning the edge.
representation_id: RepresentationIdRepresentation whose aggregate fingerprint is dirty.
edge: ArtifactEdgeKindWhether this was an input or output edge.
UpstreamNotCurrent
An upstream produced representation is not current.
Fields
representation_id: RepresentationIdImmediate input that depends on the upstream result.
state: ArtifactKnowledgeStateState computed for that upstream representation.
TraversalTruncated
Evaluation stopped at an explicit resource bound.
Fields
limit: ArtifactTraversalLimitKindBound that was reached.
representation_id: RepresentationIdRepresentation at which traversal stopped.
Trait Implementations§
Source§impl Clone for ArtifactKnowledgeReason
impl Clone for ArtifactKnowledgeReason
Source§fn clone(&self) -> ArtifactKnowledgeReason
fn clone(&self) -> ArtifactKnowledgeReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more