Struct ts3_query::managed::ManagedConfig
source[−]pub struct ManagedConfig { /* private fields */ }
This is supported on crate feature
managed
only.Expand description
Config for creating a managed connection
use std::time::Duration;
let cfg = ManagedConfig::new("127.0.0.1:10011",9987,"serveradmin".into(),"asdf".into())?
.name("my test bot".to_string())
.connection_timeout(Duration::from_secs(1))
.timeout(Duration::from_secs(1));
Implementations
Create a new ManagedConfig with default values
Set name of client for connection
All names have to be shorter than MAX_LEN_NAME.
This is required as you always have to leave enough space for teamspeak
to allow appending a unique number. Otherwise connections will fail
if the name is already claimed and too long to be made unique.
This is a limitation of the teamspeak API.
Set connection timeout
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ManagedConfig
impl Send for ManagedConfig
impl Sync for ManagedConfig
impl Unpin for ManagedConfig
impl UnwindSafe for ManagedConfig
Blanket Implementations
Mutably borrows from an owned value. Read more