pub struct McClient { /* private fields */ }
Implementations§
Source§impl McClient
impl McClient
pub fn new() -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_max_parallel(self, max_parallel: usize) -> Self
pub async fn ping( &self, address: &str, edition: ServerEdition, ) -> Result<ServerStatus, McError>
pub async fn ping_java(&self, address: &str) -> Result<ServerStatus, McError>
pub async fn ping_bedrock(&self, address: &str) -> Result<ServerStatus, McError>
pub async fn ping_many( &self, servers: &[ServerInfo], ) -> Vec<(ServerInfo, Result<ServerStatus, McError>)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McClient
impl RefUnwindSafe for McClient
impl Send for McClient
impl Sync for McClient
impl Unpin for McClient
impl UnwindSafe for McClient
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