ts3

Crates.iots3
lib.rsts3
version0.4.1
sourcesrc
created_at2021-01-28 17:59:10.997891
updated_at2023-05-01 16:31:32.744762
descriptionA TeamSpeak3 Query library
homepage
repositoryhttps://github.com/MrGunflame/ts3-rs
max_upload_size
id347709
size68,786
0xc0001a2040 (MrGunflame)

documentation

https://docs.rs/ts3

README

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.3.1"

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

Commit count: 125

cargo fmt