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

Method from_kind

atomic-repository/src/repository/observability.rs:572–579  ·  view source on GitHub ↗

Exhaustive mapping from the change-source tier enum: the compiler forces every tier variant into the closed telemetry code set.

(kind: crate::change_source::ChangeSourceKind)

Source from the content-addressed store, hash-verified

570 /// Exhaustive mapping from the change-source tier enum: the compiler
571 /// forces every tier variant into the closed telemetry code set.
572 pub fn from_kind(kind: crate::change_source::ChangeSourceKind) -> Self {
573 match kind {
574 crate::change_source::ChangeSourceKind::Scan => Self::Scan,
575 crate::change_source::ChangeSourceKind::Fsmonitor => Self::Fsmonitor,
576 crate::change_source::ChangeSourceKind::Watchman => Self::Watchman,
577 crate::change_source::ChangeSourceKind::Custom => Self::Custom,
578 }
579 }
580}
581
582impl FallbackReasonCode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected