Enum airmash_protocol::UpgradeType
source · [−]#[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
sourceimpl Clone for UpgradeType
impl Clone for UpgradeType
sourcefn clone(&self) -> UpgradeType
fn clone(&self) -> UpgradeType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpgradeType
impl Debug for UpgradeType
sourceimpl Default for UpgradeType
impl Default for UpgradeType
sourceimpl<'de> DeserializeV5<'de> for UpgradeType
impl<'de> DeserializeV5<'de> for UpgradeType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl From<UpgradeType> for u8
impl From<UpgradeType> for u8
sourcefn from(v: UpgradeType) -> Self
fn from(v: UpgradeType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for UpgradeType
impl From<u8> for UpgradeType
sourceimpl Hash for UpgradeType
impl Hash for UpgradeType
sourceimpl PartialEq<UpgradeType> for UpgradeType
impl PartialEq<UpgradeType> for UpgradeType
sourcefn eq(&self, other: &UpgradeType) -> bool
fn eq(&self, other: &UpgradeType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpgradeType) -> bool
fn ne(&self, other: &UpgradeType) -> bool
This method tests for !=
.
sourceimpl SerializeV5 for UpgradeType
impl SerializeV5 for UpgradeType
impl Copy for UpgradeType
impl Eq for UpgradeType
impl StructuralEq for UpgradeType
impl StructuralPartialEq for UpgradeType
Auto Trait Implementations
impl RefUnwindSafe for UpgradeType
impl Send for UpgradeType
impl Sync for UpgradeType
impl Unpin for UpgradeType
impl UnwindSafe for UpgradeType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more