Struct valve_server_query::models::info::Info
source · pub struct Info { /* private fields */ }Expand description
Represents a steam game server.
Ref: https://developer.valvesoftware.com/wiki/Server_queries#A2S_INFO
ⓘ
let server_name = info.name();
let loaded_map = info.map();
let max_players = info.player_max();
let players_online = info.player_count();Implementations§
source§impl Info
impl Info
Getters (Immutable)
sourcepub fn keywords(&self) -> &Option<String>
pub fn keywords(&self) -> &Option<String>
Tags that describe the game according to the server (for future use)
sourcepub fn game_id(&self) -> &Option<LongLong>
pub fn game_id(&self) -> &Option<LongLong>
The server’s 64-bit GameID. If this is present, a more accurate AppID is present in the low 24 bits. The earlier AppID could have been truncated as it was forced into 16-bit storage.
sourcepub fn game_version(&self) -> &str
pub fn game_version(&self) -> &str
Version of the game installed on the server.
sourcepub fn steam_app_id(&self) -> &Short
pub fn steam_app_id(&self) -> &Short
Steam Application ID of game
sourcepub fn player_count(&self) -> &Byte
pub fn player_count(&self) -> &Byte
Number of players on the server.
sourcepub fn player_max(&self) -> &Byte
pub fn player_max(&self) -> &Byte
Maximum number of players the server reports it can hold.
sourcepub fn server_type(&self) -> &ServerType
pub fn server_type(&self) -> &ServerType
Indicates the type of server
sourcepub fn visibility(&self) -> &Visibility
pub fn visibility(&self) -> &Visibility
Indicates whether the server requires a password
sourcepub fn spectator_name(&self) -> &Option<String>
pub fn spectator_name(&self) -> &Option<String>
Name of the spectator server for SourceTV.
sourcepub fn spectator_port(&self) -> &Option<Short>
pub fn spectator_port(&self) -> &Option<Short>
Spectator port number for SourceTV.