#[non_exhaustive]pub enum ServerMessageType {
TimeToGameStart,
Informational,
Unknown(u8),
}
Expand description
Type specifier for server banner messages.
This mostly doesn’t correspond to behaviour within the default client.
The one exception is that Informational
messages will keep showing
even if other messages are shown. However, alternate clients may use the
custom classes to show different messages in different ways.
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.
TimeToGameStart
Used by the CTF server to show messages counting down to the start of the next game.
Informational
An informational message related to the current game state. This won’t be overwritten by any other message category so it should be used for important game-related information.
§Usage Examples
- CTF uses this server message type to show flag-related updates.
Unknown(u8)
Implementations§
Trait Implementations§
Source§impl Clone for ServerMessageType
impl Clone for ServerMessageType
Source§fn clone(&self) -> ServerMessageType
fn clone(&self) -> ServerMessageType
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 ServerMessageType
impl Debug for ServerMessageType
Source§impl<'de> DeserializeV5<'de> for ServerMessageType
impl<'de> DeserializeV5<'de> for ServerMessageType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
Source§impl From<ServerMessageType> for u8
impl From<ServerMessageType> for u8
Source§fn from(v: ServerMessageType) -> Self
fn from(v: ServerMessageType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ServerMessageType
impl From<u8> for ServerMessageType
Source§impl Hash for ServerMessageType
impl Hash for ServerMessageType
Source§impl PartialEq for ServerMessageType
impl PartialEq for ServerMessageType
Source§impl SerializeV5 for ServerMessageType
impl SerializeV5 for ServerMessageType
impl Copy for ServerMessageType
impl Eq for ServerMessageType
impl StructuralPartialEq for ServerMessageType
Auto Trait Implementations§
impl Freeze for ServerMessageType
impl RefUnwindSafe for ServerMessageType
impl Send for ServerMessageType
impl Sync for ServerMessageType
impl Unpin for ServerMessageType
impl UnwindSafe for ServerMessageType
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