pub struct FrameSnapshot {
pub tick: u64,
pub inputs: u16,
pub diff_start: u32,
pub diff_count: u16,
pub checksum: [u8; 32],
}Expand description
Metadata snapshot for a single simulation frame.
Stored in the RollbackBuffer. Points into the DiffPool via
diff_start and diff_count — no data duplication.
Fields§
§tick: u64Monotonic tick counter.
inputs: u1610-bit packed InputBits (u16 for alignment).
diff_start: u32Index into DiffPool where this frame’s diffs begin.
diff_count: u16Number of 18-byte diffs produced this frame.
checksum: [u8; 32]Blake3 checksum of physical state after this frame.
Trait Implementations§
Source§impl Clone for FrameSnapshot
impl Clone for FrameSnapshot
Source§fn clone(&self) -> FrameSnapshot
fn clone(&self) -> FrameSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameSnapshot
Source§impl Debug for FrameSnapshot
impl Debug for FrameSnapshot
Auto Trait Implementations§
impl Freeze for FrameSnapshot
impl RefUnwindSafe for FrameSnapshot
impl Send for FrameSnapshot
impl Sync for FrameSnapshot
impl Unpin for FrameSnapshot
impl UnsafeUnpin for FrameSnapshot
impl UnwindSafe for FrameSnapshot
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