pub struct RCONClient {
pub url: String,
/* private fields */
}
Expand description
Simple RCON client
Fields§
§url: String
Implementations§
Source§impl RCONClient
RCON client
impl RCONClient
RCON client
Sourcepub fn new(config: RCONConfig) -> Result<Self, RCONError>
pub fn new(config: RCONConfig) -> Result<Self, RCONError>
Create new connection
Sourcepub fn auth(&mut self, auth: AuthRequest) -> Result<AuthResponse, RCONError>
pub fn auth(&mut self, auth: AuthRequest) -> Result<AuthResponse, RCONError>
Auth on game server
Sourcepub fn execute(&mut self, data: RCONRequest) -> Result<RCONResponse, RCONError>
pub fn execute(&mut self, data: RCONRequest) -> Result<RCONResponse, RCONError>
Execute request
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 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