pub struct IcmpEchoReply {
pub src_addr: Ipv4Addr,
pub len: usize,
pub seq: u16,
pub ttl: u8,
pub rtt: Duration,
}Expand description
The result of a successful ICMPv4 echo (ping) exchange.
Fields§
§src_addr: Ipv4AddrSource IPv4 address of the host that sent the echo reply.
len: usizeTotal byte length of the received ICMP message (header + payload).
seq: u16Sequence number echoed back by the remote host.
ttl: u8Time-to-live value from the IP header of the reply.
rtt: DurationRound-trip time measured from request transmission to reply receipt.
Trait Implementations§
Source§impl Clone for IcmpEchoReply
impl Clone for IcmpEchoReply
Source§fn clone(&self) -> IcmpEchoReply
fn clone(&self) -> IcmpEchoReply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IcmpEchoReply
impl Debug for IcmpEchoReply
impl Copy for IcmpEchoReply
Auto Trait Implementations§
impl Freeze for IcmpEchoReply
impl RefUnwindSafe for IcmpEchoReply
impl Send for IcmpEchoReply
impl Sync for IcmpEchoReply
impl Unpin for IcmpEchoReply
impl UnsafeUnpin for IcmpEchoReply
impl UnwindSafe for IcmpEchoReply
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