async-minecraft-ping

Crates.ioasync-minecraft-ping
lib.rsasync-minecraft-ping
version0.8.0
sourcesrc
created_at2020-04-04 22:13:41.900288
updated_at2021-12-28 03:50:50.464455
descriptionAn async Rust client for the Minecraft ServerListPing protocol
homepage
repositoryhttps://github.com/jsvana/async-minecraft-ping/
max_upload_size
id226422
size45,781
Jay Vana (jsvana)

documentation

README

async-minecraft-ping

crates.io docs.rs crates.io

An async ServerListPing client implementation in Rust.

Usage

See the example.

let mut config = ConnectionConfig::build(args.address);
if let Some(port) = args.port {
    config = config.with_port(port);
}

let mut connection = config.connect().await?;

let status = connection.status().await?;

println!(
    "{} of {} player(s) online",
    status.players.online, status.players.max
);

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 33

cargo fmt