4 releases (2 breaking)

0.4.0 Apr 2, 2023
0.2.0 May 21, 2021
0.1.2 Apr 12, 2021
0.1.0 Apr 7, 2021

#5 in #team-speak


Used in ts3

MIT/Apache

4KB
63 lines

TS3

Crates.io Docs.rs

A fully asynchronous library to interact with the TeamSpeak 3 Server query interface. See the docs here.

Usage

Add ts3 to your Cargo.toml:

ts3 = "0.4.0"

Basic example usage:

use ts3::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
    // Create a new client
    let client = Client::new("127.0.0.1:10011").await?;

    // Connect to virtualserver 1
    client.use_sid(1).await?;

    // Use whoami to fetch info about the query client
    let data = client.whoami().await?;

    println!("{}", data);
}

Documentation and more examples can be found on docs.rs.

License

Licensed under either

Dependencies

~1.5MB
~35K SLoC