pub struct CSvcMsgServerInfo {Show 16 fields
pub protocol: Option<i32>,
pub server_count: Option<i32>,
pub is_dedicated: Option<bool>,
pub is_hltv: Option<bool>,
pub c_os: Option<i32>,
pub max_clients: Option<i32>,
pub max_classes: Option<i32>,
pub player_slot: Option<i32>,
pub tick_interval: Option<f32>,
pub game_dir: Option<String>,
pub map_name: Option<String>,
pub sky_name: Option<String>,
pub host_name: Option<String>,
pub addon_name: Option<String>,
pub game_session_config: Option<CSvcMsgGameSessionConfiguration>,
pub game_session_manifest: Option<Vec<u8>>,
}Fields§
§protocol: Option<i32>§server_count: Option<i32>§is_dedicated: Option<bool>§is_hltv: Option<bool>§c_os: Option<i32>§max_clients: Option<i32>§max_classes: Option<i32>§player_slot: Option<i32>§tick_interval: Option<f32>§game_dir: Option<String>§map_name: Option<String>§sky_name: Option<String>§host_name: Option<String>§addon_name: Option<String>§game_session_config: Option<CSvcMsgGameSessionConfiguration>§game_session_manifest: Option<Vec<u8>>Implementations§
Source§impl CSvcMsgServerInfo
impl CSvcMsgServerInfo
Sourcepub fn protocol(&self) -> i32
pub fn protocol(&self) -> i32
Returns the value of protocol, or the default value if protocol is unset.
Sourcepub fn server_count(&self) -> i32
pub fn server_count(&self) -> i32
Returns the value of server_count, or the default value if server_count is unset.
Sourcepub fn is_dedicated(&self) -> bool
pub fn is_dedicated(&self) -> bool
Returns the value of is_dedicated, or the default value if is_dedicated is unset.
Sourcepub fn is_hltv(&self) -> bool
pub fn is_hltv(&self) -> bool
Returns the value of is_hltv, or the default value if is_hltv is unset.
Sourcepub fn max_clients(&self) -> i32
pub fn max_clients(&self) -> i32
Returns the value of max_clients, or the default value if max_clients is unset.
Sourcepub fn max_classes(&self) -> i32
pub fn max_classes(&self) -> i32
Returns the value of max_classes, or the default value if max_classes is unset.
Sourcepub fn player_slot(&self) -> i32
pub fn player_slot(&self) -> i32
Returns the value of player_slot, or the default value if player_slot is unset.
Sourcepub fn tick_interval(&self) -> f32
pub fn tick_interval(&self) -> f32
Returns the value of tick_interval, or the default value if tick_interval is unset.
Sourcepub fn game_dir(&self) -> &str
pub fn game_dir(&self) -> &str
Returns the value of game_dir, or the default value if game_dir is unset.
Sourcepub fn map_name(&self) -> &str
pub fn map_name(&self) -> &str
Returns the value of map_name, or the default value if map_name is unset.
Sourcepub fn sky_name(&self) -> &str
pub fn sky_name(&self) -> &str
Returns the value of sky_name, or the default value if sky_name is unset.
Sourcepub fn host_name(&self) -> &str
pub fn host_name(&self) -> &str
Returns the value of host_name, or the default value if host_name is unset.
Sourcepub fn addon_name(&self) -> &str
pub fn addon_name(&self) -> &str
Returns the value of addon_name, or the default value if addon_name is unset.
Sourcepub fn game_session_manifest(&self) -> &[u8] ⓘ
pub fn game_session_manifest(&self) -> &[u8] ⓘ
Returns the value of game_session_manifest, or the default value if game_session_manifest is unset.
Trait Implementations§
Source§impl Clone for CSvcMsgServerInfo
impl Clone for CSvcMsgServerInfo
Source§fn clone(&self) -> CSvcMsgServerInfo
fn clone(&self) -> CSvcMsgServerInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CSvcMsgServerInfo
impl Debug for CSvcMsgServerInfo
Source§impl Default for CSvcMsgServerInfo
impl Default for CSvcMsgServerInfo
Source§fn default() -> CSvcMsgServerInfo
fn default() -> CSvcMsgServerInfo
Source§impl<'de> Deserialize<'de> for CSvcMsgServerInfo
impl<'de> Deserialize<'de> for CSvcMsgServerInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CSvcMsgServerInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CSvcMsgServerInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Message for CSvcMsgServerInfo
impl Message for CSvcMsgServerInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.