#[non_exhaustive]
pub enum ServerCustomType {
BTR,
CTF,
SwitchGameSuggestion,
Unknown(u8),
}
Expand description
Specific identifiers for server custom messages.
TODO: Reverse Engineer
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.
BTR
Triggers the game-end screen in BTR.
CTF
Triggers the game-end screen in CTF.
SwitchGameSuggestion
For suggesting a different game server for the player to switch to.
Unknown(u8)
Implementations
Trait Implementations
sourceimpl Clone for ServerCustomType
impl Clone for ServerCustomType
sourcefn clone(&self) -> ServerCustomType
fn clone(&self) -> ServerCustomType
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 ServerCustomType
impl Debug for ServerCustomType
sourceimpl<'de> DeserializeV5<'de> for ServerCustomType
impl<'de> DeserializeV5<'de> for ServerCustomType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl From<ServerCustomType> for u8
impl From<ServerCustomType> for u8
sourcefn from(v: ServerCustomType) -> Self
fn from(v: ServerCustomType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for ServerCustomType
impl From<u8> for ServerCustomType
sourceimpl Hash for ServerCustomType
impl Hash for ServerCustomType
sourceimpl PartialEq<ServerCustomType> for ServerCustomType
impl PartialEq<ServerCustomType> for ServerCustomType
sourcefn eq(&self, other: &ServerCustomType) -> bool
fn eq(&self, other: &ServerCustomType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ServerCustomType) -> bool
fn ne(&self, other: &ServerCustomType) -> bool
This method tests for !=
.
sourceimpl SerializeV5 for ServerCustomType
impl SerializeV5 for ServerCustomType
impl Copy for ServerCustomType
impl Eq for ServerCustomType
impl StructuralEq for ServerCustomType
impl StructuralPartialEq for ServerCustomType
Auto Trait Implementations
impl RefUnwindSafe for ServerCustomType
impl Send for ServerCustomType
impl Sync for ServerCustomType
impl Unpin for ServerCustomType
impl UnwindSafe for ServerCustomType
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