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

impl_decode

The impl_decode macro implements Decode for any type that implements FromStr.

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

Error
ParseError

Traits

Decode

A type implementing Decode allows to be read from the TS stream

Derive Macros

Decode