pub struct PingResponsePacket();Expand description
The PingResponse packet is sent to a Client from the Server to reply to PingRequest packet.
This ping request/response mechanism is used to keep alive.
Note that this packet does not contain variable header or payload.
Implementations§
Trait Implementations§
Source§impl Clone for PingResponsePacket
impl Clone for PingResponsePacket
Source§fn clone(&self) -> PingResponsePacket
fn clone(&self) -> PingResponsePacket
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 PingResponsePacket
impl Debug for PingResponsePacket
Source§impl DecodePacket for PingResponsePacket
impl DecodePacket for PingResponsePacket
Source§impl Default for PingResponsePacket
impl Default for PingResponsePacket
Source§fn default() -> PingResponsePacket
fn default() -> PingResponsePacket
Returns the “default value” for a type. Read more
Source§impl EncodePacket for PingResponsePacket
impl EncodePacket for PingResponsePacket
Source§impl Packet for PingResponsePacket
impl Packet for PingResponsePacket
fn packet_type(&self) -> PacketType
Source§impl PartialEq for PingResponsePacket
impl PartialEq for PingResponsePacket
impl Eq for PingResponsePacket
impl StructuralPartialEq for PingResponsePacket
Auto Trait Implementations§
impl Freeze for PingResponsePacket
impl RefUnwindSafe for PingResponsePacket
impl Send for PingResponsePacket
impl Sync for PingResponsePacket
impl Unpin for PingResponsePacket
impl UnwindSafe for PingResponsePacket
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