mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
The ship support
This commit is contained in:
parent
5cf5615265
commit
401d499d61
3 changed files with 19 additions and 9 deletions
10
examples/the_ship.rs
Normal file
10
examples/the_ship.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue