Struct airmash_protocol::server::PlayerUpdate [−][src]
pub struct PlayerUpdate {
pub clock: u32,
pub id: Player,
pub keystate: ServerKeyState,
pub upgrades: Upgrades,
pub pos: Position,
pub rot: Rotation,
pub speed: Velocity,
}Movement update for a player.
Fields
clock: u32
id: Player
keystate: ServerKeyState
upgrades: Upgrades
pos: Position
rot: Rotation
speed: Velocity
Trait Implementations
impl Copy for PlayerUpdate[src]
impl Copy for PlayerUpdateimpl Clone for PlayerUpdate[src]
impl Clone for PlayerUpdatefn clone(&self) -> PlayerUpdate[src]
fn clone(&self) -> PlayerUpdateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for PlayerUpdate[src]
impl Debug for PlayerUpdatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<PlayerUpdate> for ServerPacket[src]
impl From<PlayerUpdate> for ServerPacketfn from(v: PlayerUpdate) -> Self[src]
fn from(v: PlayerUpdate) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for PlayerUpdate
impl Send for PlayerUpdateimpl Sync for PlayerUpdate
impl Sync for PlayerUpdate