pub struct PlayerPowerup {
pub ty: PowerupType,
pub duration: u32,
}Expand description
The current player picked up a powerup.
Fields§
§ty: PowerupType§duration: u32Lifetime of the powerup, in milliseconds.
Trait Implementations§
Source§impl Clone for PlayerPowerup
impl Clone for PlayerPowerup
Source§fn clone(&self) -> PlayerPowerup
fn clone(&self) -> PlayerPowerup
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 PlayerPowerup
impl Debug for PlayerPowerup
Source§impl<'de> DeserializeV5<'de> for PlayerPowerup
impl<'de> DeserializeV5<'de> for PlayerPowerup
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<PlayerPowerup> for ServerPacket
impl From<PlayerPowerup> for ServerPacket
Source§fn from(v: PlayerPowerup) -> Self
fn from(v: PlayerPowerup) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for PlayerPowerup
impl SerializeV5 for PlayerPowerup
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for PlayerPowerup
Auto Trait Implementations§
impl Freeze for PlayerPowerup
impl RefUnwindSafe for PlayerPowerup
impl Send for PlayerPowerup
impl Sync for PlayerPowerup
impl Unpin for PlayerPowerup
impl UnwindSafe for PlayerPowerup
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