Struct ts3::client::Client[][src]

pub struct Client { /* fields omitted */ }
Expand description

A Client used to send commands to the serverquery interface.

Implementations

Create a new connection

Send a raw command directly to the server. The response will be directly decoded into the type T. To get a HashMap like response, use the RawResp struct.

Creates a new apikey using the specified scope, for the invoking user. The default lifetime of a token is 14 days, a zero lifetime means no expiration. It is possible to create apikeys for other users using b_virtualserver_apikey_manage.

Delete an apikey. Any apikey owned by the current user can always be deleted. Deleting apikeys from another user requires b_virtualserver_apikey_manage.

Lists all apikeys owned by the user, or of all users using cldbid=(0, true). Usage of cldbid=… requires b_virtualserver_apikey_manage.

Add a new ban rule on the selected virtual server. One of ip, name, uid and mytsid must not be None.

Sends a text message to all clients on all virtual servers in the TeamSpeak 3 Server instance.

Authenticate with the given data.

Deselects the active virtual server and logs out from the server instance.

Send a quit command, disconnecting the client and closing the TCP connection

Adds one or more clients to the server group specified with sgid. Please note that a client cannot be added to default groups or template groups.

Removes one or more clients specified with cldbid from the server group specified with sgid.

Registers for a specified category of events on a virtual server to receive notification messages. Depending on the notifications you’ve registered for, the server will send you a message on every event in the view of your ServerQuery client (e.g. clients joining your channel, incoming text messages, server configuration changes, etc). The event source is declared by the event parameter while id can be used to limit the notifications to a specific channel.

Starts the virtual server specified with sid. Depending on your permissions, you’re able to start either your own virtual server only or all virtual servers in the server instance.

Stops the virtual server specified with sid. Depending on your permissions, you’re able to stop either your own virtual server only or all virtual servers in the server instance. The reasonmsg parameter specifies a text message that is sent to the clients before the client disconnects.

Switch to the virtualserver (voice) with the given server id

Like use_sid but instead use_port uses the voice port to connect to the virtualserver

Returns information about the server version

Returns information about the query client connected

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.