pub struct QueryClient {
pub addr: SocketAddr,
/* private fields */
}Expand description
The p field has to be requested from the server each time this client is
constructed, if possible reuse this!
Fields§
§addr: SocketAddrImplementations§
Source§impl QueryClient
impl QueryClient
pub fn new(addr: SocketAddr) -> Self
pub async fn server_info( &mut self, ) -> Result<(ServerInfo, Duration), QueryClientError>
Auto Trait Implementations§
impl Freeze for QueryClient
impl RefUnwindSafe for QueryClient
impl Send for QueryClient
impl Sync for QueryClient
impl Unpin for QueryClient
impl UnwindSafe for QueryClient
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