pub trait Checkpoint {
// Required methods
fn checkpoint(&self) -> Result<Vec<u8>, Error>;
fn restore(&mut self, data: &[u8]) -> Result<(), Error>;
}
Expand description
Trait for types that can be check-pointed and restored.
This is to be used for any additional state within circuit operators that’s not stored within a batch (which are already stored in files).