Struct ts3plugin::Server
[−]
[src]
pub struct Server { /* fields omitted */ }
Methods
impl Server
[src]
fn get_id(&self) -> ServerId
fn get_uid(&self) -> Result<&String, &Error>
fn get_own_connection_id(&self) -> Result<ConnectionId, Error>
fn get_name(&self) -> Result<&String, &Error>
fn get_phonetic_name(&self) -> Result<&String, &Error>
fn get_platform(&self) -> Result<&String, &Error>
fn get_version(&self) -> Result<&String, &Error>
fn get_created(&self) -> Result<DateTime<UTC>, Error>
fn get_codec_encryption_mode(&self) -> Result<CodecEncryptionMode, Error>
fn get_default_server_group(&self) -> Result<&Permissions, &Error>
fn get_mut_default_server_group(
&mut self
) -> Result<&mut Permissions, &mut Error>
&mut self
) -> Result<&mut Permissions, &mut Error>
fn get_default_channel_group(&self) -> Result<&Permissions, &Error>
fn get_mut_default_channel_group(
&mut self
) -> Result<&mut Permissions, &mut Error>
&mut self
) -> Result<&mut Permissions, &mut Error>
fn get_default_channel_admin_group(&self) -> Result<&Permissions, &Error>
fn get_mut_default_channel_admin_group(
&mut self
) -> Result<&mut Permissions, &mut Error>
&mut self
) -> Result<&mut Permissions, &mut Error>
fn get_priority_speaker_dimm_modificator(&self) -> Result<i32, Error>
fn get_icon_id(&self) -> Result<i32, Error>
fn get_reserved_slots(&self) -> Result<i32, Error>
fn get_ask_for_privilegekey(&self) -> Result<bool, Error>
fn get_channel_temp_delete_delay_default(&self) -> Result<Duration, Error>
fn get_visible_connections(&self) -> &Map<ConnectionId, Connection>
fn get_channels(&self) -> Result<&Map<ChannelId, Channel>, &Error>
fn get_optional_data(&self) -> &OptionalServerData
fn get_mut_optional_data(&mut self) -> &mut OptionalServerData
impl Server
[src]
fn get_connection_ids(&self) -> Vec<ConnectionId>
Get the ids of all visible connections on this server.
fn get_channel_ids(&self) -> Vec<ChannelId>
Get the ids of all channels on this server.
fn get_connection(&self, connection_id: ConnectionId) -> Option<&Connection>
Get the connection on this server that has the specified id, returns
None
if there is no such connection.
fn get_mut_connection(
&mut self,
connection_id: ConnectionId
) -> Option<&mut Connection>
&mut self,
connection_id: ConnectionId
) -> Option<&mut Connection>
Get the mutable connection on this server that has the specified id, returns
None
if there is no such connection.
fn get_channel(&self, channel_id: ChannelId) -> Option<&Channel>
Get the channel on this server that has the specified id, returns
None
if there is no such channel.
fn get_mut_channel(&mut self, channel_id: ChannelId) -> Option<&mut Channel>
Get the mutable channel on this server that has the specified id, returns
None
if there is no such channel.
fn send_message<S: AsRef<str>>(&self, message: S) -> Result<(), Error>
Send a message to the server chat.
fn print_message<S: AsRef<str>>(&self, message: S, target: MessageTarget)
Print a message into the server or channel tab of this server. This is only visible in the window of this client and will not be sent to the server.
Trait Implementations
impl Clone for Server
[src]
fn clone(&self) -> Server
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq<Server> for Server
[src]
fn eq(&self, other: &Server) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.