Skip to main content

ArtifactKnowledgeReason

Enum ArtifactKnowledgeReason 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ProducingActivityMissing

No activity records how the target representation was produced.

Fields

§representation_id: RepresentationId

Representation being evaluated.

§

ProducingActivityAmbiguous

More than one activity claims to have produced the representation.

Fields

§representation_id: RepresentationId

Representation being evaluated.

§activity_count: u32

Number of producing activities found.

§

SnapshotAbsent

A legacy activity edge has no storage-captured snapshot.

Fields

§activity_id: ActivityId

Activity owning the edge.

§representation_id: RepresentationId

Representation referenced by the edge.

§edge: ArtifactEdgeKind

Whether this was an input or output edge.

§

DependencySnapshotAbsent

A legacy activity input has no dependency-closure snapshot.

Fields

§activity_id: ActivityId

Activity owning the input.

§representation_id: RepresentationId

Input representation whose closure was not captured.

§

DependencyKnowledgeIncomplete

Captured dependency knowledge was incomplete at activity creation.

Fields

§activity_id: ActivityId

Activity owning the input.

§input_representation_id: RepresentationId

Direct activity input.

§subject_representation_id: RepresentationId

Representation at which capture became indeterminate.

§path: Vec<ArtifactDependencyPathSegment>

Captured typed path to the subject or unresolved edge.

§issue: ArtifactDependencyIssue

Specific incomplete-knowledge condition.

§

DependencyPathChanged

A required authored path no longer matches its captured observation.

Fields

§activity_id: ActivityId

Activity owning the input.

§input_representation_id: RepresentationId

Direct activity input.

§path: Vec<ArtifactDependencyPathSegment>

Captured path that changed.

§

DependencyFingerprintChanged

Current dependency content differs from the captured fingerprint.

Fields

§activity_id: ActivityId

Activity owning the input.

§input_representation_id: RepresentationId

Direct activity input.

§representation_id: RepresentationId

Changed dependency representation.

§path: Vec<ArtifactDependencyPathSegment>

Captured typed path to the dependency.

§algorithm: String

Fingerprint algorithm.

§version: u16

Fingerprint format version.

§snapshot_value: Vec<u8>

Captured fingerprint bytes.

§current_value: Vec<u8>

Current fingerprint bytes.

§

DependencyFingerprintRecomputationPending

Dependency content changed and its aggregate fingerprint is not current yet.

Fields

§activity_id: ActivityId

Activity owning the input.

§input_representation_id: RepresentationId

Direct activity input.

§representation_id: RepresentationId

Dependency 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: ActivityId

Activity owning the input.

§input_representation_id: RepresentationId

Direct activity input.

§representation_id: RepresentationId

Dependency representation lacking evidence.

§path: Vec<ArtifactDependencyPathSegment>

Captured typed path to the dependency.

§algorithm: Option<String>

Algorithm domain, when either side supplied one.

§version: Option<u16>

Algorithm version, when either side supplied one.

§snapshot_value: Option<Vec<u8>>

Captured value, when present.

§current_value: Option<Vec<u8>>

Current value, when present.

§

FingerprintEvidenceMissing

The edge has no comparable fingerprint evidence.

Fields

§activity_id: ActivityId

Activity owning the edge.

§representation_id: RepresentationId

Representation referenced by the edge.

§edge: ArtifactEdgeKind

Whether this was an input or output edge.

§algorithm: Option<String>

Algorithm domain, when one side of the comparison had it.

§version: Option<u16>

Algorithm version, when one side of the comparison had it.

§snapshot_value: Option<Vec<u8>>

Snapshot value, when present.

§current_value: Option<Vec<u8>>

Current value, when present.

§

FingerprintChanged

Current content differs from the edge snapshot in one fingerprint domain.

Fields

§activity_id: ActivityId

Activity owning the edge.

§representation_id: RepresentationId

Representation referenced by the edge.

§edge: ArtifactEdgeKind

Whether this was an input or output edge.

§algorithm: String

Fingerprint algorithm.

§version: u16

Fingerprint algorithm version.

§snapshot_value: Vec<u8>

Value captured on the activity edge.

§current_value: Vec<u8>

Current representation fingerprint value.

§

FingerprintRecomputationPending

A resource observation changed and its representation fingerprint has not yet been recomputed.

Fields

§activity_id: ActivityId

Activity owning the edge.

§representation_id: RepresentationId

Representation whose aggregate fingerprint is dirty.

§edge: ArtifactEdgeKind

Whether this was an input or output edge.

§

UpstreamNotCurrent

An upstream produced representation is not current.

Fields

§representation_id: RepresentationId

Immediate input that depends on the upstream result.

§state: ArtifactKnowledgeState

State computed for that upstream representation.

§

TraversalTruncated

Evaluation stopped at an explicit resource bound.

Fields

§limit: ArtifactTraversalLimitKind

Bound that was reached.

§representation_id: RepresentationId

Representation at which traversal stopped.

Trait Implementations§

Source§

impl Clone for ArtifactKnowledgeReason

Source§

fn clone(&self) -> ArtifactKnowledgeReason

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ArtifactKnowledgeReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ArtifactKnowledgeReason

Source§

impl PartialEq for ArtifactKnowledgeReason

Source§

fn eq(&self, other: &ArtifactKnowledgeReason) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ArtifactKnowledgeReason

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.