[][src]Crate teestatus

teestatus

Request info about teeworlds servers.

Example


env_logger::init();
let sock = UdpSocket::bind("0.0.0.0:0").expect("can't bind socket");
sock.connect("0.0.0.0:8303")
    .expect("can't connect socket");
println!("info: {:#?}", ServerInfo::new(&sock).unwrap());

Structs

Player

Player info.

ServerInfo

Server info.

Enums

RequestError

Various errors

Type Definitions

Result

A type alias to handle Results with RequestError.