pub struct Info<'a> {Show 16 fields
pub protocol: u8,
pub name: &'a str,
pub map: &'a str,
pub folder: &'a str,
pub game: &'a str,
pub id: u16,
pub players: u8,
pub max_players: u8,
pub bots: u8,
pub server_type: ServerType,
pub environment: Environment,
pub is_private: bool,
pub vac: bool,
pub the_ship: Option<Info>,
pub version: &'a str,
pub extra_data: Option<ExtraData<'a>>,
}Expand description
Parsed Source engine server information.
String fields borrow from the response packet. Use Info::to_owned to
create an owned copy that can outlive that packet.
Fields§
§protocol: u8A2S protocol version reported by the server.
name: &'a strHuman-readable server name.
map: &'a strCurrent map name.
folder: &'a strGame directory name.
game: &'a strHuman-readable game description.
id: u16Steam application ID of the game.
players: u8Number of players currently reported by the server.
max_players: u8Maximum number of players supported by the server.
bots: u8Number of bots reported by the server.
server_type: ServerTypeWhether the server is dedicated, listen-hosted, or a proxy.
environment: EnvironmentOperating system family reported by the server.
is_private: boolWhether the server is password-protected.
vac: boolWhether Valve Anti-Cheat is enabled.
the_ship: Option<Info>Additional game mode information, present for The Ship.
version: &'a strServer version string.
extra_data: Option<ExtraData<'a>>Optional extended data advertised by the server.