pub struct ConnectedPong {
pub ping_time: i64,
pub pong_time: i64,
}
Expand description
Sent in response to a ConnectedPing
packet.
This packet is sent by the other peer in response to a ConnectedPing
packet as
an acknowledgement that the connection is still alive. It contains the time of the
round trip from the time that the initiator sent the ConnectedPing
packet.
Fields§
§ping_time: i64
The time that the peer sent the ConnectedPing
packet.
pong_time: i64
The time that you sent the ConnectedPong
packet to the peer.
Trait Implementations§
Source§impl Clone for ConnectedPong
impl Clone for ConnectedPong
Source§fn clone(&self) -> ConnectedPong
fn clone(&self) -> ConnectedPong
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 ConnectedPong
impl Debug for ConnectedPong
Source§impl From<ConnectedPong> for OnlinePacket
impl From<ConnectedPong> for OnlinePacket
Source§fn from(packet: ConnectedPong) -> Self
fn from(packet: ConnectedPong) -> Self
Converts to this type from the input type.
Source§impl From<ConnectedPong> for RakPacket
impl From<ConnectedPong> for RakPacket
Source§fn from(packet: ConnectedPong) -> Self
fn from(packet: ConnectedPong) -> Self
Converts to this type from the input type.
Source§impl From<OnlinePacket> for ConnectedPong
impl From<OnlinePacket> for ConnectedPong
Source§fn from(packet: OnlinePacket) -> Self
fn from(packet: OnlinePacket) -> Self
Converts to this type from the input type.
Source§impl From<RakPacket> for ConnectedPong
impl From<RakPacket> for ConnectedPong
Source§impl Reader<ConnectedPong> for ConnectedPong
impl Reader<ConnectedPong> for ConnectedPong
Source§fn read(_binary_readerr: &mut ByteReader) -> Result<ConnectedPong, Error>
fn read(_binary_readerr: &mut ByteReader) -> Result<ConnectedPong, Error>
Source§impl Writer for ConnectedPong
impl Writer for ConnectedPong
Source§fn write_to_bytes(&self) -> Result<ByteWriter, Error>
fn write_to_bytes(&self) -> Result<ByteWriter, Error>
This is a utility function to write
Self
to a ByteWriter
without
needing to create a ByteWriter
first.Auto Trait Implementations§
impl Freeze for ConnectedPong
impl RefUnwindSafe for ConnectedPong
impl Send for ConnectedPong
impl Sync for ConnectedPong
impl Unpin for ConnectedPong
impl UnwindSafe for ConnectedPong
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