(&mut self, kind: DigestKind)
| 822 | } |
| 823 | |
| 824 | fn put_digest_kind(&mut self, kind: DigestKind) -> Result<(), OperationCodecError> { |
| 825 | self.put_u8(match kind { |
| 826 | DigestKind::Bytes => 0, |
| 827 | DigestKind::Manifest => 1, |
| 828 | DigestKind::Checkpoint => 2, |
| 829 | DigestKind::Shelf => 3, |
| 830 | DigestKind::Refs => 4, |
| 831 | }) |
| 832 | } |
| 833 | |
| 834 | fn put_file_state(&mut self, state: &FileState) -> Result<(), OperationCodecError> { |
| 835 | self.put_u8(match state.kind { |
no test coverage detected