pub struct StatusConnection { /* private fields */ }
Expand description
Wraps a built connection
Implementations§
Source§impl StatusConnection
impl StatusConnection
Sourcepub async fn status(self) -> Result<PingConnection, ServerError>
pub async fn status(self) -> Result<PingConnection, ServerError>
Sends and reads the packets for the ServerListPing status call.
Consumes the connection and returns a type
that can only issue pings. The resulting
status body is accessible via the status
property on PingConnection
.
Auto Trait Implementations§
impl !Freeze for StatusConnection
impl RefUnwindSafe for StatusConnection
impl Send for StatusConnection
impl Sync for StatusConnection
impl Unpin for StatusConnection
impl UnwindSafe for StatusConnection
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