#[non_exhaustive]pub struct EchoReply {
pub ttl: Option<u8>,
pub source: IpAddr,
pub sequence: u16,
pub identifier: u16,
pub payload_len: usize,
pub payload: Vec<u8>,
pub size: usize,
}Expand description
EchoReply struct, which contains some packet information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ttl: Option<u8>IP Time To Live for outgoing packets. Present for ICMPv4 replies, absent for ICMPv6 replies.
source: IpAddrSource address of ICMP packet.
sequence: u16Sequence of ICMP packet.
identifier: u16Identifier of ICMP packet.
payload_len: usizeSize of ICMP echo payload.
payload: Vec<u8>ICMP echo payload.
size: usize👎Deprecated since 0.6.0:
use payload_len instead
Deprecated alias for payload_len.
Implementations§
Trait Implementations§
impl Eq for EchoReply
impl StructuralPartialEq for EchoReply
Auto Trait Implementations§
impl Freeze for EchoReply
impl RefUnwindSafe for EchoReply
impl Send for EchoReply
impl Sync for EchoReply
impl Unpin for EchoReply
impl UnsafeUnpin for EchoReply
impl UnwindSafe for EchoReply
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