16个版本
0.4.1 | 2023年5月1日 |
---|---|
0.3.3 | 2023年3月18日 |
0.3.2 | 2021年9月14日 |
0.3.1 | 2021年5月21日 |
0.2.5 | 2021年3月31日 |
#368 在 异步
每月32次下载
61KB
1.5K SLoC
TS3
一个完全异步的库,用于与TeamSpeak 3服务器查询接口交互。请参阅此处的文档。
用法
将 ts3
添加到您的 Cargo.toml
ts3 = "0.3.1"
基本示例用法
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);
}
文档和更多示例可以在docs.rs上找到。
许可证
许可以下任一
依赖项
~4–12MB
~134K SLoC