Struct airmash_protocol::server::PlayerPowerup [−][src]
pub struct PlayerPowerup {
pub ty: PowerupType,
pub duration: u32,
}The current player picked up a powerup.
Fields
ty: PowerupType
duration: u32
Lifetime of the powerup, in milliseconds.
Trait Implementations
impl Copy for PlayerPowerup[src]
impl Copy for PlayerPowerupimpl Clone for PlayerPowerup[src]
impl Clone for PlayerPowerupfn clone(&self) -> PlayerPowerup[src]
fn clone(&self) -> PlayerPowerupReturns 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 PlayerPowerup[src]
impl Debug for PlayerPowerupfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<PlayerPowerup> for ServerPacket[src]
impl From<PlayerPowerup> for ServerPacketfn from(v: PlayerPowerup) -> Self[src]
fn from(v: PlayerPowerup) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for PlayerPowerup
impl Send for PlayerPowerupimpl Sync for PlayerPowerup
impl Sync for PlayerPowerup