pub struct StateDelta {
pub base_frame: u64,
pub target_frame: u64,
pub changes: Vec<(usize, Vec<u8>)>,
pub checksum: u64,
}Expand description
Delta-encoded state snapshot for efficient storage
Per Lavoie [9]: Delta encoding achieves 94% overhead reduction compared to full snapshots.
Fields§
§base_frame: u64Base frame this delta applies to
target_frame: u64Target frame after applying delta
changes: Vec<(usize, Vec<u8>)>Changed memory regions (offset, data)
checksum: u64Checksum of resulting state
Implementations§
Trait Implementations§
Source§impl Clone for StateDelta
impl Clone for StateDelta
Source§fn clone(&self) -> StateDelta
fn clone(&self) -> StateDelta
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 moreAuto Trait Implementations§
impl Freeze for StateDelta
impl RefUnwindSafe for StateDelta
impl Send for StateDelta
impl Sync for StateDelta
impl Unpin for StateDelta
impl UnsafeUnpin for StateDelta
impl UnwindSafe for StateDelta
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