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

Function receipt_kind_order

atomic-repository/src/repository/operation.rs:4594–4602  ·  view source on GitHub ↗
(kind: EffectReceiptKind)

Source from the content-addressed store, hash-verified

4592}
4593
4594fn receipt_kind_order(kind: EffectReceiptKind) -> u8 {
4595 match kind {
4596 EffectReceiptKind::Applied => 0,
4597 EffectReceiptKind::Recovered => 1,
4598 EffectReceiptKind::RolledBack => 2,
4599 EffectReceiptKind::LeaseRejected => 3,
4600 EffectReceiptKind::Verified => 4,
4601 }
4602}
4603
4604fn sole_recovery_parent(recovery: &Operation) -> Result<OperationId, RepositoryError> {
4605 match recovery.payload().parents.as_slice() {

Callers 1

sort_receiptsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected