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

Method put_receipt_kind

atomic-core/src/operation/codec.rs:845–853  ·  view source on GitHub ↗
(&mut self, kind: EffectReceiptKind)

Source from the content-addressed store, hash-verified

843 }
844
845 fn put_receipt_kind(&mut self, kind: EffectReceiptKind) -> Result<(), OperationCodecError> {
846 self.put_u8(match kind {
847 EffectReceiptKind::Applied => 0,
848 EffectReceiptKind::Verified => 1,
849 EffectReceiptKind::RolledBack => 2,
850 EffectReceiptKind::LeaseRejected => 3,
851 EffectReceiptKind::Recovered => 4,
852 })
853 }
854}
855
856struct Decoder<'a> {

Callers 1

Calls 1

put_u8Method · 0.80

Tested by

no test coverage detected