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

Method removal

atomic-repository/src/repository/snapshot.rs:83–97  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

81 }
82
83 pub(super) fn removal(&self) -> Option<(&str, Hash)> {
84 match self {
85 Self::Durable => None,
86 Self::Snapshot {
87 view,
88 replaces: Some(previous),
89 ..
90 } => Some((view, *previous)),
91 Self::Snapshot { replaces: None, .. } => None,
92 Self::Promotion {
93 snapshot_view,
94 snapshot,
95 } => Some((snapshot_view, *snapshot)),
96 }
97 }
98
99 /// Whether this lifecycle publishes a snapshot-kind change (R3: the
100 /// publication path must refuse dependency-invalid snapshots BEFORE

Callers 1

record_with_lifecycleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected