pub struct PredictedInput<A>where
A: Copy,{
pub tick: u64,
pub action: A,
}Expand description
A single client-side input tagged with the tick it applies to.
Fields§
§tick: u64Simulation tick the input applies to.
action: APlayer action / control vector.
Trait Implementations§
Source§impl<A> Clone for PredictedInput<A>
impl<A> Clone for PredictedInput<A>
impl<A> Copy for PredictedInput<A>
Source§impl<A> Debug for PredictedInput<A>
impl<A> Debug for PredictedInput<A>
impl<A> Eq for PredictedInput<A>
Source§impl<A> PartialEq for PredictedInput<A>
impl<A> PartialEq for PredictedInput<A>
impl<A> StructuralPartialEq for PredictedInput<A>
Auto Trait Implementations§
impl<A> Freeze for PredictedInput<A>where
A: Freeze,
impl<A> RefUnwindSafe for PredictedInput<A>where
A: RefUnwindSafe,
impl<A> Send for PredictedInput<A>where
A: Send,
impl<A> Sync for PredictedInput<A>where
A: Sync,
impl<A> Unpin for PredictedInput<A>where
A: Unpin,
impl<A> UnsafeUnpin for PredictedInput<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for PredictedInput<A>where
A: 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
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