pub struct PredictionFrame<I, S> {
pub tick: u64,
pub input: I,
pub predicted_state: S,
}Expand description
One locally simulated input and the predicted state after it committed.
Fields§
§tick: u64Client simulation Tick assigned to this input.
input: IApplication-owned local input.
predicted_state: SPredicted application state after this input and Tick.
Trait Implementations§
Source§impl<I: Clone, S: Clone> Clone for PredictionFrame<I, S>
impl<I: Clone, S: Clone> Clone for PredictionFrame<I, S>
Source§fn clone(&self) -> PredictionFrame<I, S>
fn clone(&self) -> PredictionFrame<I, S>
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<I: Eq, S: Eq> Eq for PredictionFrame<I, S>
impl<I: PartialEq, S: PartialEq> StructuralPartialEq for PredictionFrame<I, S>
Auto Trait Implementations§
impl<I, S> Freeze for PredictionFrame<I, S>
impl<I, S> RefUnwindSafe for PredictionFrame<I, S>where
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<I, S> Send for PredictionFrame<I, S>
impl<I, S> Sync for PredictionFrame<I, S>
impl<I, S> Unpin for PredictionFrame<I, S>
impl<I, S> UnsafeUnpin for PredictionFrame<I, S>where
I: UnsafeUnpin,
S: UnsafeUnpin,
impl<I, S> UnwindSafe for PredictionFrame<I, S>where
I: UnwindSafe,
S: UnwindSafe,
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