pub struct RCONConfig {
pub url: String,
pub write_timeout: Option<u64>,
pub read_timeout: Option<u64>,
}
Expand description
Configuration for RCON client
Fields§
§url: String
URL to server listening RCON
example: 0.0.0.0:25575
or donkey-engine.host:1337
write_timeout: Option<u64>
Timeout in secs for commands sending to server Default: 30 secs
read_timeout: Option<u64>
Timeout in secs for response waiting from server Default: 30 secs
Trait Implementations§
Source§impl Default for RCONConfig
impl Default for RCONConfig
Source§fn default() -> RCONConfig
fn default() -> RCONConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RCONConfig
impl RefUnwindSafe for RCONConfig
impl Send for RCONConfig
impl Sync for RCONConfig
impl Unpin for RCONConfig
impl UnwindSafe for RCONConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more