pub struct CheckpointSnapshot {
pub rules: u64,
pub index: usize,
}Expand description
Compact save state. The host owns the fingerprint of the authored rules.
There is no timestamp or generation: two saves with the same rules and index are indistinguishable. A host that needs freshness checks must store them in its own save envelope.
Fields§
§rules: u64§index: usizeTrait Implementations§
Source§impl Clone for CheckpointSnapshot
impl Clone for CheckpointSnapshot
Source§fn clone(&self) -> CheckpointSnapshot
fn clone(&self) -> CheckpointSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckpointSnapshot
impl Debug for CheckpointSnapshot
Source§impl PartialEq for CheckpointSnapshot
impl PartialEq for CheckpointSnapshot
impl Copy for CheckpointSnapshot
impl Eq for CheckpointSnapshot
impl StructuralPartialEq for CheckpointSnapshot
Auto Trait Implementations§
impl Freeze for CheckpointSnapshot
impl RefUnwindSafe for CheckpointSnapshot
impl Send for CheckpointSnapshot
impl Sync for CheckpointSnapshot
impl Unpin for CheckpointSnapshot
impl UnwindSafe for CheckpointSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more