(&self)
| 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 |
no outgoing calls
no test coverage detected