pub struct PingResult {
pub ping: u16,
pub players_total: u32,
pub players_game: u32,
}Expand description
Resulting ping data sent back from the server.
Fields§
§ping: u16§players_total: u32§players_game: u32Trait Implementations§
Source§impl Clone for PingResult
impl Clone for PingResult
Source§fn clone(&self) -> PingResult
fn clone(&self) -> PingResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PingResult
impl Debug for PingResult
Source§impl<'de> DeserializeV5<'de> for PingResult
impl<'de> DeserializeV5<'de> for PingResult
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<PingResult> for ServerPacket
impl From<PingResult> for ServerPacket
Source§fn from(v: PingResult) -> Self
fn from(v: PingResult) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for PingResult
impl SerializeV5 for PingResult
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for PingResult
Auto Trait Implementations§
impl Freeze for PingResult
impl RefUnwindSafe for PingResult
impl Send for PingResult
impl Sync for PingResult
impl Unpin for PingResult
impl UnwindSafe for PingResult
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