Skip to main content

encode

Function encode 

Source
pub fn encode(c: &Checkpoint) -> Result<Vec<u8>, CheckpointError>
Expand description

A checkpoint as bytes (UTF-8 JSON, so a person can read one in a bug report). Refuses step >= MAX_STEPS with CheckpointError::TooManySteps.