mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
10 lines
241 B
Rust
10 lines
241 B
Rust
|
|
use gamedig::TheShip;
|
|
|
|
fn main() {
|
|
let response = TheShip::query("46.4.48.226", Some(27017));
|
|
match response {
|
|
Err(error) => println!("Couldn't query, error: {error}"),
|
|
Ok(r) => println!("{:?}", r)
|
|
}
|
|
}
|