#[repr(u8)]pub enum MessageType {
Show 28 variants
Empty = 0,
File = 2,
NetTick = 3,
StringCmd = 4,
SetConVar = 5,
SignOnState = 6,
Print = 7,
ServerInfo = 8,
ClassInfo = 10,
SetPause = 11,
CreateStringTable = 12,
UpdateStringTable = 13,
VoiceInit = 14,
VoiceData = 15,
ParseSounds = 17,
SetView = 18,
FixAngle = 19,
BspDecal = 21,
UserMessage = 23,
EntityMessage = 24,
GameEvent = 25,
PacketEntities = 26,
TempEntities = 27,
PreFetch = 28,
Menu = 29,
GameEventList = 30,
GetCvarValue = 31,
CmdKeyValues = 32,
}
Variants§
Empty = 0
File = 2
NetTick = 3
StringCmd = 4
SetConVar = 5
SignOnState = 6
Print = 7
ServerInfo = 8
ClassInfo = 10
SetPause = 11
CreateStringTable = 12
UpdateStringTable = 13
VoiceInit = 14
VoiceData = 15
ParseSounds = 17
SetView = 18
FixAngle = 19
BspDecal = 21
UserMessage = 23
EntityMessage = 24
GameEvent = 25
PacketEntities = 26
TempEntities = 27
PreFetch = 28
Menu = 29
GameEventList = 30
GetCvarValue = 31
CmdKeyValues = 32
Trait Implementations§
Source§impl<'a, _E: Endianness> BitRead<'a, _E> for MessageType
impl<'a, _E: Endianness> BitRead<'a, _E> for MessageType
Source§impl<'a, _E: Endianness> BitWrite<_E> for MessageType
impl<'a, _E: Endianness> BitWrite<_E> for MessageType
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MessageType
impl Debug for MessageType
Source§impl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl Serialize for MessageType
impl Serialize for MessageType
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Encode for Twhere
T: BitWrite<LittleEndian>,
impl<T> Encode for Twhere
T: BitWrite<LittleEndian>,
fn encode( &self, stream: &mut BitWriteStream<'_, LittleEndian>, _state: &ParserState, ) -> Result<(), ParseError>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more