#[non_exhaustive]pub enum ServerCustomType {
BTR,
CTF,
SwitchGameSuggestion,
Unknown(u8),
}Expand description
Specific identifiers for server custom messages.
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§
Source§impl Clone for ServerCustomType
impl Clone for ServerCustomType
Source§fn clone(&self) -> ServerCustomType
fn clone(&self) -> ServerCustomType
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 ServerCustomType
impl Debug for ServerCustomType
Source§impl<'de> DeserializeV5<'de> for ServerCustomType
impl<'de> DeserializeV5<'de> for ServerCustomType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
Source§impl From<ServerCustomType> for u8
impl From<ServerCustomType> for u8
Source§fn from(v: ServerCustomType) -> Self
fn from(v: ServerCustomType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ServerCustomType
impl From<u8> for ServerCustomType
Source§impl Hash for ServerCustomType
impl Hash for ServerCustomType
Source§impl PartialEq for ServerCustomType
impl PartialEq for ServerCustomType
Source§impl SerializeV5 for ServerCustomType
impl SerializeV5 for ServerCustomType
impl Copy for ServerCustomType
impl Eq for ServerCustomType
impl StructuralPartialEq for ServerCustomType
Auto Trait Implementations§
impl Freeze for ServerCustomType
impl RefUnwindSafe for ServerCustomType
impl Send for ServerCustomType
impl Sync for ServerCustomType
impl Unpin for ServerCustomType
impl UnwindSafe for ServerCustomType
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