Crate ts3[][src]

Expand description

ts3

A WIP ts3 query interface library

Examples

use ts3::Client;

#[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(())
}

Re-exports

pub use client::Client;
pub use client::RawResp;
pub use event::EventHandler;

Modules

client
event

Macros

make_command

Structs

List

A list of other objects that are being read from or written to the TS3 server interface. It implements both FromStr and ToString as long as T itself also implements these traits.

Enums

DecodeError
Error
ParseError

Traits

Decode

Any type implementing Decode can be directly decoded from the TS3 stream. It provides the complete buffer of the response from the stream.

Derive Macros

Decode