pub struct Q3Tool { /* private fields */ }Implementations§
Source§impl Q3Tool
impl Q3Tool
Sourcepub fn new(host: &str, password: Option<String>) -> Self
pub fn new(host: &str, password: Option<String>) -> Self
Creates a new instance of the Q3Tool struct but does not perform any requests
Sourcepub fn get_status(&self) -> Result<ServerInfo, Q3Error>
pub fn get_status(&self) -> Result<ServerInfo, Q3Error>
Sends a UDP getstatus packet to the host and parses the response into a ServerInfo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Q3Tool
impl RefUnwindSafe for Q3Tool
impl Send for Q3Tool
impl Sync for Q3Tool
impl Unpin for Q3Tool
impl UnwindSafe for Q3Tool
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