pub struct PingPacket {
pub id: u64,
}Expand description
A ping packet sent to the server.
Fields§
§id: u64Opaque, client-generated id.
Will be returned by the server unmodified and can be used to correlate pong replies to ping requests to e.g. calculate latency.
Trait Implementations§
Source§impl Clone for PingPacket
impl Clone for PingPacket
Source§fn clone(&self) -> PingPacket
fn clone(&self) -> PingPacket
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 PingPacket
impl Debug for PingPacket
Source§impl From<PingPacket> for [u8; 12]
impl From<PingPacket> for [u8; 12]
Source§fn from(packet: PingPacket) -> Self
fn from(packet: PingPacket) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PingPacket
impl PartialEq for PingPacket
Source§impl TryFrom<&[u8]> for PingPacket
impl TryFrom<&[u8]> for PingPacket
impl StructuralPartialEq for PingPacket
Auto Trait Implementations§
impl Freeze for PingPacket
impl RefUnwindSafe for PingPacket
impl Send for PingPacket
impl Sync for PingPacket
impl Unpin for PingPacket
impl UnwindSafe for PingPacket
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