Crates.io | async-minecraft-ping |
lib.rs | async-minecraft-ping |
version | 0.8.0 |
source | src |
created_at | 2020-04-04 22:13:41.900288 |
updated_at | 2021-12-28 03:50:50.464455 |
description | An async Rust client for the Minecraft ServerListPing protocol |
homepage | |
repository | https://github.com/jsvana/async-minecraft-ping/ |
max_upload_size | |
id | 226422 |
size | 45,781 |
An async ServerListPing client implementation in Rust.
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
);
Licensed under either of
at your option.
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.