#[non_exhaustive]pub enum UpgradeType {
None,
Speed,
Defense,
Energy,
Missile,
Unknown(u8),
}Expand description
All upgrade types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
This seems to be sent by the official server when a player leaves. Packets with this value are ignored by the client, so they don’t seem to affect gameplay at all.
Speed
Defense
Energy
Missile
Unknown(u8)
Trait Implementations§
Source§impl Clone for UpgradeType
impl Clone for UpgradeType
Source§fn clone(&self) -> UpgradeType
fn clone(&self) -> UpgradeType
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 UpgradeType
impl Debug for UpgradeType
Source§impl Default for UpgradeType
impl Default for UpgradeType
Source§impl<'de> DeserializeV5<'de> for UpgradeType
impl<'de> DeserializeV5<'de> for UpgradeType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
Source§impl From<UpgradeType> for u8
impl From<UpgradeType> for u8
Source§fn from(v: UpgradeType) -> Self
fn from(v: UpgradeType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for UpgradeType
impl From<u8> for UpgradeType
Source§impl Hash for UpgradeType
impl Hash for UpgradeType
Source§impl PartialEq for UpgradeType
impl PartialEq for UpgradeType
Source§impl SerializeV5 for UpgradeType
impl SerializeV5 for UpgradeType
impl Copy for UpgradeType
impl Eq for UpgradeType
impl StructuralPartialEq for UpgradeType
Auto Trait Implementations§
impl Freeze for UpgradeType
impl RefUnwindSafe for UpgradeType
impl Send for UpgradeType
impl Sync for UpgradeType
impl Unpin for UpgradeType
impl UnwindSafe for UpgradeType
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