[][src]Crate ts3

ts3

A WIP ts3 query interface library

Examples

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

    // switch to virtual server with id 1
    client.use_sid(1).await?;

    Ok(())
}

Structs

Client

A Client used to send commands to the serverquery interface.