mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Documentation update
This commit is contained in:
parent
40912bb192
commit
00ead6d946
13 changed files with 117 additions and 58 deletions
18
src/lib.rs
18
src/lib.rs
|
|
@ -1,8 +1,24 @@
|
|||
|
||||
//! Query many servers
|
||||
//!
|
||||
//! # Example
|
||||
//!
|
||||
//! ```no_run
|
||||
//! use gamedig::games::tf2;
|
||||
//!
|
||||
//! fn main() {
|
||||
//! let response = tf2::query("91.216.250.10", None); //or Some(27015), None is the default protocol port
|
||||
//! match response {
|
||||
//! Err(error) => println!("Couldn't query, error: {error}"),
|
||||
//! Ok(r) => println!("{:?}", r)
|
||||
//! }
|
||||
//! }
|
||||
//! ```
|
||||
|
||||
pub mod errors;
|
||||
pub mod protocols;
|
||||
mod utils;
|
||||
pub mod games;
|
||||
mod utils;
|
||||
|
||||
pub use errors::*;
|
||||
pub use protocols::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue