pub struct PlayerUpdate {
pub clock: u32,
pub id: Player,
pub keystate: ServerKeyState,
pub upgrades: Upgrades,
pub pos: Position,
pub rot: Rotation,
pub speed: Velocity,
}Expand description
Movement update for a player.
Fields§
§clock: u32§id: Player§keystate: ServerKeyState§upgrades: Upgrades§pos: Position§rot: Rotation§speed: VelocityTrait Implementations§
Source§impl Clone for PlayerUpdate
impl Clone for PlayerUpdate
Source§fn clone(&self) -> PlayerUpdate
fn clone(&self) -> PlayerUpdate
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 PlayerUpdate
impl Debug for PlayerUpdate
Source§impl<'de> DeserializeV5<'de> for PlayerUpdate
impl<'de> DeserializeV5<'de> for PlayerUpdate
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<PlayerUpdate> for ServerPacket
impl From<PlayerUpdate> for ServerPacket
Source§fn from(v: PlayerUpdate) -> Self
fn from(v: PlayerUpdate) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for PlayerUpdate
impl SerializeV5 for PlayerUpdate
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for PlayerUpdate
Auto Trait Implementations§
impl Freeze for PlayerUpdate
impl RefUnwindSafe for PlayerUpdate
impl Send for PlayerUpdate
impl Sync for PlayerUpdate
impl Unpin for PlayerUpdate
impl UnwindSafe for PlayerUpdate
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