pub struct RconClient { /* private fields */ }Implementations§
Source§impl RconClient
impl RconClient
pub fn new(host: String, port: u16, password: String) -> Self
pub fn is_connected(&self) -> bool
pub async fn connect(&mut self) -> Result<()>
pub async fn execute(&mut self, command: &str) -> Result<String>
pub async fn disconnect(&mut self)
pub async fn say(&mut self, message: &str) -> Result<()>
pub async fn tell(&mut self, player: &str, message: &str) -> Result<()>
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