Crate valve_server_query
source ·Expand description
Access Valve’s Server Query using this package.
Game Server Info
use valve_server_query::Server;
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");
Re-exports
pub use models::info::Info;
pub use models::info::Platform;
pub use models::info::ServerType;
pub use models::info::Vac;
pub use models::info::Visibility;
pub use models::Player;
pub use server::Rules;
pub use server::Server;