Enum airmash_protocol::GameType
source · [−]#[non_exhaustive]
pub enum GameType {
FFA,
CTF,
BTR,
Unknown(u8),
}
Expand description
Game Type.
This is used to indicate to the client which game type is being played.
The client will then use this to decide team colouring and whether to
show CTF flags in-game. It will also decide the type of detailed score
packet that the client expects to receive: one of ScoreDetailedFFA
,
ScoreDetailedCTF
, or ScoreDetailedBTR
, corresponding to FFA
,
CTF
, and BTR
, respectively.
Used in:
- TODO
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.
FFA
CTF
BTR
Unknown(u8)
Trait Implementations
sourceimpl<'de> DeserializeV5<'de> for GameType
impl<'de> DeserializeV5<'de> for GameType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl SerializeV5 for GameType
impl SerializeV5 for GameType
impl Copy for GameType
impl Eq for GameType
impl StructuralEq for GameType
impl StructuralPartialEq for GameType
Auto Trait Implementations
impl RefUnwindSafe for GameType
impl Send for GameType
impl Sync for GameType
impl Unpin for GameType
impl UnwindSafe for GameType
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