pub struct SimulationSnapshot {
pub frame: u64,
pub state: Vec<u8>,
pub checksum: SimulationChecksum,
}Expand description
Complete physics state snapshot for rollback.
Captures the full deterministic state at a given frame so the simulation can be rewound and replayed with corrected inputs.
Fields§
§frame: u64Frame number this snapshot was taken at
state: Vec<u8>Serialized physics world state
checksum: SimulationChecksumChecksum at this frame
Trait Implementations§
Source§impl Clone for SimulationSnapshot
impl Clone for SimulationSnapshot
Auto Trait Implementations§
impl Freeze for SimulationSnapshot
impl RefUnwindSafe for SimulationSnapshot
impl Send for SimulationSnapshot
impl Sync for SimulationSnapshot
impl Unpin for SimulationSnapshot
impl UnsafeUnpin for SimulationSnapshot
impl UnwindSafe for SimulationSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more