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

Method read_checkpoint_kind

atomic-core/src/operation/codec.rs:1393–1402  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1391 }
1392
1393 fn read_checkpoint_kind(&mut self) -> Result<CheckpointKind, OperationCodecError> {
1394 match self.read_u8()? {
1395 0 => Ok(CheckpointKind::Bridge),
1396 1 => Ok(CheckpointKind::WorkingCopyCompatibility),
1397 2 => Ok(CheckpointKind::Recovery),
1398 tag => Err(OperationCodecError::new(format!(
1399 "unsupported checkpoint kind tag {tag}"
1400 ))),
1401 }
1402 }
1403
1404 fn read_verification_scope(&mut self) -> Result<VerificationScope, OperationCodecError> {
1405 match self.read_u8()? {

Callers 1

read_effect_targetMethod · 0.80

Calls 1

read_u8Method · 0.80

Tested by

no test coverage detected