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

Getters (Immutable)

Name of the server.

Map the server has currently loaded.

Name of the folder containing the game files.

Tags that describe the game according to the server (for future use)

Full name of the game.

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.

Version of the game installed on the server.

Steam Application ID of game

Server’s SteamID.

Number of players on the server.

Maximum number of players the server reports it can hold.

Number of bots on the server.

Indicates the type of server

Indicates the operating system of the server

Indicates whether the server requires a password

Specifies whether the server uses VAC

The server’s game port number

Name of the spectator server for SourceTV.

Spectator port number for SourceTV.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.