Struct airmash_protocol::server::ScoreUpdate [−][src]
pub struct ScoreUpdate {
pub id: Player,
pub score: Score,
pub earnings: Score,
pub upgrades: u16,
pub total_kills: u32,
pub total_deaths: u32,
}Stats for the current player
Fields
id: Player
score: Score
earnings: Score
upgrades: u16
The number of unused upgrades that the player has.
total_kills: u32
total_deaths: u32
Trait Implementations
impl Copy for ScoreUpdate[src]
impl Copy for ScoreUpdateimpl Clone for ScoreUpdate[src]
impl Clone for ScoreUpdatefn clone(&self) -> ScoreUpdate[src]
fn clone(&self) -> ScoreUpdateReturns 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 ScoreUpdate[src]
impl Debug for ScoreUpdatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<ScoreUpdate> for ServerPacket[src]
impl From<ScoreUpdate> for ServerPacketfn from(v: ScoreUpdate) -> Self[src]
fn from(v: ScoreUpdate) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ScoreUpdate
impl Send for ScoreUpdateimpl Sync for ScoreUpdate
impl Sync for ScoreUpdate