pub struct Ping {
pub clock: u32,
pub num: u32,
}Expand description
A ping request by the server.
All clients must respond with a Pong with num set to the same value as
this packet. If a client does not do this, the client will be disconnected
by the server.
Fields§
§clock: u32§num: u32Trait Implementations§
Source§impl<'de> DeserializeV5<'de> for Ping
impl<'de> DeserializeV5<'de> for Ping
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<Ping> for ServerPacket
impl From<Ping> for ServerPacket
Source§impl SerializeV5 for Ping
impl SerializeV5 for Ping
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for Ping
Auto Trait Implementations§
impl Freeze for Ping
impl RefUnwindSafe for Ping
impl Send for Ping
impl Sync for Ping
impl Unpin for Ping
impl UnwindSafe for Ping
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