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
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
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
Blanket Implementations
Mutably borrows from an owned value. Read more