pub struct RconClient { /* private fields */ }Implementations§
Source§impl RconClient
impl RconClient
pub fn new(host: String, port: u16, password: String) -> Self
pub fn connect(&mut self) -> Result<()>
pub fn execute(&mut self, command: &str) -> Result<String>
pub fn disconnect(&mut self)
pub fn say(&mut self, message: &str) -> Result<()>
pub fn tell(&mut self, player: &str, message: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RconClient
impl RefUnwindSafe for RconClient
impl Send for RconClient
impl Sync for RconClient
impl Unpin for RconClient
impl UnsafeUnpin for RconClient
impl UnwindSafe for RconClient
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