pub struct RepeatLastConfirmed;Expand description
The default prediction strategy: repeat the last confirmed input.
This strategy is deterministic because last_confirmed_input is guaranteed
to be the same across all peers after synchronization.
If there is no confirmed input yet (e.g., at the start of the game), this returns the default input value.
Trait Implementations§
Source§impl Clone for RepeatLastConfirmed
impl Clone for RepeatLastConfirmed
Source§fn clone(&self) -> RepeatLastConfirmed
fn clone(&self) -> RepeatLastConfirmed
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 moreSource§impl Debug for RepeatLastConfirmed
impl Debug for RepeatLastConfirmed
Source§impl Default for RepeatLastConfirmed
impl Default for RepeatLastConfirmed
Source§fn default() -> RepeatLastConfirmed
fn default() -> RepeatLastConfirmed
Returns the “default value” for a type. Read more
Source§impl Display for RepeatLastConfirmed
impl Display for RepeatLastConfirmed
Source§impl Hash for RepeatLastConfirmed
impl Hash for RepeatLastConfirmed
Source§impl PartialEq for RepeatLastConfirmed
impl PartialEq for RepeatLastConfirmed
Source§impl<I: Copy + Default> PredictionStrategy<I> for RepeatLastConfirmed
impl<I: Copy + Default> PredictionStrategy<I> for RepeatLastConfirmed
impl Copy for RepeatLastConfirmed
impl Eq for RepeatLastConfirmed
impl StructuralPartialEq for RepeatLastConfirmed
Auto Trait Implementations§
impl Freeze for RepeatLastConfirmed
impl RefUnwindSafe for RepeatLastConfirmed
impl Send for RepeatLastConfirmed
impl Sync for RepeatLastConfirmed
impl Unpin for RepeatLastConfirmed
impl UnwindSafe for RepeatLastConfirmed
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