Enum airmash_protocol::FlagUpdateType
source · [−]#[non_exhaustive]
pub enum FlagUpdateType {
Position,
Carrier,
Unknown(u8),
}
Expand description
Flag update type
Used to indicate whether the flag is now being carried by a player or whether the update sets the position of the flag directly.
Used in:
- TODO
Implementors Note: This had a TODO: rev-eng
comment on it but it doesn’t seem to be missing
any values.
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.
Position
Carrier
Unknown(u8)
Trait Implementations
sourceimpl Clone for FlagUpdateType
impl Clone for FlagUpdateType
sourcefn clone(&self) -> FlagUpdateType
fn clone(&self) -> FlagUpdateType
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 FlagUpdateType
impl Debug for FlagUpdateType
sourceimpl<'de> DeserializeV5<'de> for FlagUpdateType
impl<'de> DeserializeV5<'de> for FlagUpdateType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl From<FlagUpdateType> for u8
impl From<FlagUpdateType> for u8
sourcefn from(v: FlagUpdateType) -> Self
fn from(v: FlagUpdateType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for FlagUpdateType
impl From<u8> for FlagUpdateType
sourceimpl Hash for FlagUpdateType
impl Hash for FlagUpdateType
sourceimpl PartialEq<FlagUpdateType> for FlagUpdateType
impl PartialEq<FlagUpdateType> for FlagUpdateType
sourcefn eq(&self, other: &FlagUpdateType) -> bool
fn eq(&self, other: &FlagUpdateType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FlagUpdateType) -> bool
fn ne(&self, other: &FlagUpdateType) -> bool
This method tests for !=
.
sourceimpl SerializeV5 for FlagUpdateType
impl SerializeV5 for FlagUpdateType
impl Copy for FlagUpdateType
impl Eq for FlagUpdateType
impl StructuralEq for FlagUpdateType
impl StructuralPartialEq for FlagUpdateType
Auto Trait Implementations
impl RefUnwindSafe for FlagUpdateType
impl Send for FlagUpdateType
impl Sync for FlagUpdateType
impl Unpin for FlagUpdateType
impl UnwindSafe for FlagUpdateType
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