#[non_exhaustive]
pub enum ServerMessageType {
TimeToGameStart,
Flag,
Shutdown,
Banner,
Unknown(u8),
}
Expand description
Type specifier for server banner 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.
TimeToGameStart
Flag
TODO: Verify the value of this one
Shutdown
New Type, used by this server for shutdown message (once they work)
Banner
New Type, used by this server for banner messages on player join.
Unknown(u8)
Trait Implementations
sourceimpl Clone for ServerMessageType
impl Clone for ServerMessageType
sourcefn clone(&self) -> ServerMessageType
fn clone(&self) -> ServerMessageType
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 ServerMessageType
impl Debug for ServerMessageType
sourceimpl<'de> DeserializeV5<'de> for ServerMessageType
impl<'de> DeserializeV5<'de> for ServerMessageType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl From<ServerMessageType> for u8
impl From<ServerMessageType> for u8
sourcefn from(v: ServerMessageType) -> Self
fn from(v: ServerMessageType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for ServerMessageType
impl From<u8> for ServerMessageType
sourceimpl Hash for ServerMessageType
impl Hash for ServerMessageType
sourceimpl PartialEq<ServerMessageType> for ServerMessageType
impl PartialEq<ServerMessageType> for ServerMessageType
sourcefn eq(&self, other: &ServerMessageType) -> bool
fn eq(&self, other: &ServerMessageType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ServerMessageType) -> bool
fn ne(&self, other: &ServerMessageType) -> bool
This method tests for !=
.
sourceimpl SerializeV5 for ServerMessageType
impl SerializeV5 for ServerMessageType
impl Copy for ServerMessageType
impl Eq for ServerMessageType
impl StructuralEq for ServerMessageType
impl StructuralPartialEq for ServerMessageType
Auto Trait Implementations
impl RefUnwindSafe for ServerMessageType
impl Send for ServerMessageType
impl Sync for ServerMessageType
impl Unpin for ServerMessageType
impl UnwindSafe for ServerMessageType
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