pub struct RecordedFrame {
pub frame: u64,
pub inputs: Vec<InputEvent>,
pub state_hash: u64,
}Expand description
A single frame’s worth of recorded data
Fields§
§frame: u64Frame number
inputs: Vec<InputEvent>Input events for this frame
state_hash: u64Hash of game state after this frame (for verification)
Trait Implementations§
Source§impl Clone for RecordedFrame
impl Clone for RecordedFrame
Source§fn clone(&self) -> RecordedFrame
fn clone(&self) -> RecordedFrame
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 RecordedFrame
impl RefUnwindSafe for RecordedFrame
impl Send for RecordedFrame
impl Sync for RecordedFrame
impl Unpin for RecordedFrame
impl UnsafeUnpin for RecordedFrame
impl UnwindSafe for RecordedFrame
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