pub struct InputPacket {
pub from_player: PlayerId,
pub frame: Frame,
pub inputs: Vec<(Frame, PlayerInput)>,
pub checksum: u32,
pub ack_frame: Frame,
}Fields§
§from_player: PlayerId§frame: Frame§inputs: Vec<(Frame, PlayerInput)>§checksum: u32§ack_frame: FrameImplementations§
Trait Implementations§
Source§impl Clone for InputPacket
impl Clone for InputPacket
Source§fn clone(&self) -> InputPacket
fn clone(&self) -> InputPacket
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 InputPacket
impl RefUnwindSafe for InputPacket
impl Send for InputPacket
impl Sync for InputPacket
impl Unpin for InputPacket
impl UnsafeUnpin for InputPacket
impl UnwindSafe for InputPacket
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