pub struct Server { /* private fields */ }
Expand description

Represents a game server running a Steam game.

let server = Server::new("127.0.0.1:12345").expect("Connect to dedicated server running Valve game");

let info = server.info().expect("Get general server information");
let players = server.players().expect("Get server player information");
let rules = server.rules().expect("Get server rules");

Implementations

A2S_RULES Implementation

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.