pub fn decode(bytes: &[u8]) -> Result<Checkpoint, CheckpointError>Expand description
The checkpoint in bytes. A newer schema_version is
CheckpointError::UnsupportedVersion (checked before the rest is read);
anything else wrong is CheckpointError::Unreadable. A restored value
has exactly the bits it was saved with.