pub struct InputFrame<T> {
pub sequence: u64,
pub target_tick: u64,
pub input: T,
}Expand description
One game-specific input assigned to an authoritative simulation Tick.
Fields§
§sequence: u64Monotonically increasing client input sequence.
target_tick: u64Authoritative server Tick on which this input should be applied.
input: TApplication-owned input value.
Trait Implementations§
Source§impl<T: Clone> Clone for InputFrame<T>
impl<T: Clone> Clone for InputFrame<T>
Source§fn clone(&self) -> InputFrame<T>
fn clone(&self) -> InputFrame<T>
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 moreSource§impl<T: Debug> Debug for InputFrame<T>
impl<T: Debug> Debug for InputFrame<T>
Source§impl<'de, T> Deserialize<'de> for InputFrame<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for InputFrame<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Eq> Eq for InputFrame<T>
Source§impl<T: PartialEq> PartialEq for InputFrame<T>
impl<T: PartialEq> PartialEq for InputFrame<T>
Source§impl<T> Serialize for InputFrame<T>where
T: Serialize,
impl<T> Serialize for InputFrame<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for InputFrame<T>
Auto Trait Implementations§
impl<T> Freeze for InputFrame<T>where
T: Freeze,
impl<T> RefUnwindSafe for InputFrame<T>where
T: RefUnwindSafe,
impl<T> Send for InputFrame<T>where
T: Send,
impl<T> Sync for InputFrame<T>where
T: Sync,
impl<T> Unpin for InputFrame<T>where
T: Unpin,
impl<T> UnsafeUnpin for InputFrame<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for InputFrame<T>where
T: 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