ServerListPing in Rust
Find a file
2024-08-02 23:09:44 +02:00
examples status_raw is now a seperate function 2020-10-09 19:59:05 +02:00
src chore: update dependencies and rust edition 2024-08-02 23:09:44 +02:00
.gitignore chore: update dependencies and rust edition 2024-08-02 23:09:44 +02:00
.rustfmt.toml Initial commit (#1) 2020-04-04 14:54:55 -07:00
Cargo.lock chore: update dependencies and rust edition 2024-08-02 23:09:44 +02:00
Cargo.toml chore: update dependencies and rust edition 2024-08-02 23:09:44 +02:00
LICENSE-APACHE Initial commit (#1) 2020-04-04 14:54:55 -07:00
LICENSE-MIT Initial commit (#1) 2020-04-04 14:54:55 -07:00
README.md chore: update dependencies and rust edition 2024-08-02 23:09:44 +02:00

async-minecraft-ping

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.