#[repr(i32)]pub enum SvcMessages {
Show 31 variants
SvcServerInfo = 40,
SvcFlattenedSerializer = 41,
SvcClassInfo = 42,
SvcSetPause = 43,
SvcCreateStringTable = 44,
SvcUpdateStringTable = 45,
SvcVoiceInit = 46,
SvcVoiceData = 47,
SvcPrint = 48,
SvcSounds = 49,
SvcSetView = 50,
SvcClearAllStringTables = 51,
SvcCmdKeyValues = 52,
SvcBspDecal = 53,
SvcSplitScreen = 54,
SvcPacketEntities = 55,
SvcPrefetch = 56,
SvcMenu = 57,
SvcGetCvarValue = 58,
SvcStopSound = 59,
SvcPeerList = 60,
SvcPacketReliable = 61,
SvcHltvStatus = 62,
SvcServerSteamId = 63,
SvcFullFrameSplit = 70,
SvcRconServerDetails = 71,
SvcUserMessage = 72,
SvcBroadcastCommand = 74,
SvcHltvFixupOperatorStatus = 75,
SvcUserCmds = 76,
SvcNextMsgPredicted = 77,
}Variants§
SvcServerInfo = 40
SvcFlattenedSerializer = 41
SvcClassInfo = 42
SvcSetPause = 43
SvcCreateStringTable = 44
SvcUpdateStringTable = 45
SvcVoiceInit = 46
SvcVoiceData = 47
SvcPrint = 48
SvcSounds = 49
SvcSetView = 50
SvcClearAllStringTables = 51
SvcCmdKeyValues = 52
SvcBspDecal = 53
SvcSplitScreen = 54
SvcPacketEntities = 55
SvcPrefetch = 56
SvcMenu = 57
SvcGetCvarValue = 58
SvcStopSound = 59
SvcPeerList = 60
SvcPacketReliable = 61
SvcHltvStatus = 62
SvcServerSteamId = 63
SvcFullFrameSplit = 70
SvcRconServerDetails = 71
SvcUserMessage = 72
SvcBroadcastCommand = 74
SvcHltvFixupOperatorStatus = 75
SvcUserCmds = 76
SvcNextMsgPredicted = 77
Implementations§
Source§impl SvcMessages
impl SvcMessages
Source§impl SvcMessages
impl SvcMessages
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<SvcMessages>
pub fn from_str_name(value: &str) -> Option<SvcMessages>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for SvcMessages
impl Clone for SvcMessages
Source§fn clone(&self) -> SvcMessages
fn clone(&self) -> SvcMessages
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SvcMessages
impl Debug for SvcMessages
Source§impl Default for SvcMessages
impl Default for SvcMessages
Source§fn default() -> SvcMessages
fn default() -> SvcMessages
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SvcMessages
impl<'de> Deserialize<'de> for SvcMessages
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SvcMessages, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SvcMessages, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SvcMessages
impl Hash for SvcMessages
Source§impl Ord for SvcMessages
impl Ord for SvcMessages
Source§fn cmp(&self, other: &SvcMessages) -> Ordering
fn cmp(&self, other: &SvcMessages) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SvcMessages
impl PartialEq for SvcMessages
Source§fn eq(&self, other: &SvcMessages) -> bool
fn eq(&self, other: &SvcMessages) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SvcMessages
impl PartialOrd for SvcMessages
Source§impl Serialize for SvcMessages
impl Serialize for SvcMessages
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<i32> for SvcMessages
impl TryFrom<i32> for SvcMessages
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<SvcMessages, UnknownEnumValue>
fn try_from(value: i32) -> Result<SvcMessages, UnknownEnumValue>
Performs the conversion.
impl Copy for SvcMessages
impl Eq for SvcMessages
impl StructuralPartialEq for SvcMessages
Auto Trait Implementations§
impl Freeze for SvcMessages
impl RefUnwindSafe for SvcMessages
impl Send for SvcMessages
impl Sync for SvcMessages
impl Unpin for SvcMessages
impl UnsafeUnpin for SvcMessages
impl UnwindSafe for SvcMessages
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