pub struct PingReceiveData {
pub package_size: usize,
pub ip_addr: IpAddr,
pub ttl: u8,
pub sequence_number: u16,
pub ping_duration: Duration,
}Expand description
Structure represeting a received echo reply message.
Fields§
§package_size: usizeThe size of the payload in the received reply message.
ip_addr: IpAddrThe IP address of the host which sent the reply.
ttl: u8The time to live (TTL) of the received reply message.
sequence_number: u16The sequence number of the echo reply.
ping_duration: DurationThe measured duration between sending the echo message and receiving the reply.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PingReceiveData
impl RefUnwindSafe for PingReceiveData
impl Send for PingReceiveData
impl Sync for PingReceiveData
impl Unpin for PingReceiveData
impl UnwindSafe for PingReceiveData
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