MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / code

Method code

atomic-repository/src/change_source/core.rs:60–80  ·  view source on GitHub ↗

Stable observability code for this degradation reason (RFC §13 Phase 13 task 5). Codes are fixed snake_case strings; details live in logs, never in structured telemetry.

(&self)

Source from the content-addressed store, hash-verified

58 /// Phase 13 task 5). Codes are fixed snake_case strings; details live
59 /// in logs, never in structured telemetry.
60 pub fn code(&self) -> &'static str {
61 match self {
62 Self::MissingIndex => "missing_index",
63 Self::MalformedIndex(_) => "malformed_index",
64 Self::ConversionPolicyChanged => "conversion_policy_changed",
65 Self::CanonicalAttributesChanged => "canonical_attributes_changed",
66 Self::SparsePolicyChanged => "sparse_policy_changed",
67 Self::ConfigurationChanged => "configuration_changed",
68 Self::FilterChanged => "filter_changed",
69 Self::ConfiguredOff => "configured_off",
70 Self::DisabledInCi => "disabled_in_ci",
71 Self::DisabledInContainer => "disabled_in_container",
72 Self::Unavailable(_) => "unavailable",
73 Self::UnsupportedVersion { .. } => "unsupported_version",
74 Self::UnknownToken => "unknown_token",
75 Self::Overflow => "overflow",
76 Self::MalformedResponse(_) => "malformed_response",
77 Self::Timeout { .. } => "timeout",
78 Self::SourceError(_) => "source_error",
79 }
80 }
81}
82
83/// Why a path was selected for canonical re-verification.

Callers 4

resolve_headFunction · 0.45
resolve_refFunction · 0.45
command_failureFunction · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected