pub struct TsApiLock { /* private fields */ }Methods from Deref<Target = TsApi>§
Sourcepub fn get_plugin_id(&self) -> &str
pub fn get_plugin_id(&self) -> &str
Get the plugin id assigned by TeamSpeak.
Sourcepub fn get_servers<'a>(&'a self) -> Vec<Server<'a>>
pub fn get_servers<'a>(&'a self) -> Vec<Server<'a>>
Get the raw TeamSpeak api functions. These functions can be used to invoke actions that are not yet implemented by this library. You should file a bug report or make a pull request if you need to use this function. Get all servers to which this client is currently connected.
Sourcepub fn log_message<S1: AsRef<str>, S2: AsRef<str>>(
&self,
message: S1,
channel: S2,
severity: LogLevel,
) -> Result<(), Error>
pub fn log_message<S1: AsRef<str>, S2: AsRef<str>>( &self, message: S1, channel: S2, severity: LogLevel, ) -> Result<(), Error>
Log a message using the TeamSpeak logging API.
Sourcepub fn log_or_print<S1: AsRef<str>, S2: AsRef<str>>(
&self,
message: S1,
channel: S2,
severity: LogLevel,
)
pub fn log_or_print<S1: AsRef<str>, S2: AsRef<str>>( &self, message: S1, channel: S2, severity: LogLevel, )
Log a message using the TeamSpeak logging API. If that fails, print the message to stdout.
Sourcepub fn get_server(&self, server_id: ServerId) -> Option<Server<'_>>
pub fn get_server(&self, server_id: ServerId) -> Option<Server<'_>>
Get the server that has the specified id, returns None if there is no
such server.
pub fn get_permission( &self, _permission_id: PermissionId, ) -> Option<&Permission>
Sourcepub fn print_message<S: AsRef<str>>(&self, message: S)
pub fn print_message<S: AsRef<str>>(&self, message: S)
Print a message to the currently selected tab. This is only visible in the window of this client and will not be sent to the server.
Sourcepub fn get_app_path(&self) -> String
pub fn get_app_path(&self) -> String
Get the application path of the TeamSpeak executable.
Sourcepub fn get_resources_path(&self) -> String
pub fn get_resources_path(&self) -> String
Get the resource path of TeamSpeak.
Sourcepub fn get_config_path(&self) -> String
pub fn get_config_path(&self) -> String
Get the path, where configuration files are stored.
This is e.g. ~/.ts3client on linux or %AppData%/TS3Client on Windows.
Sourcepub fn get_plugin_path(&self) -> String
pub fn get_plugin_path(&self) -> String
Get the path where TeamSpeak plugins are stored.