#[repr(C, packed(1))]pub struct IcmpEcho {
pub id: [u8; 2],
pub sequence: [u8; 2],
}Expand description
Represents Echo Request/Reply messages and other message types that share the same header format. Used for ICMP Types:
- 0: Echo Reply
- 8: Echo Request
- 13: Timestamp Request
- 14: Timestamp Reply
- 15: Information Request (deprecated)
- 16: Information Reply (deprecated)
- 17: Address Mask Request (deprecated)
- 18: Address Mask Reply (deprecated)
- 37: Domain Name Request (deprecated)
- 38: Domain Name Reply (deprecated)
Fields§
§id: [u8; 2]§sequence: [u8; 2]Trait Implementations§
Auto Trait Implementations§
impl Freeze for IcmpEcho
impl RefUnwindSafe for IcmpEcho
impl Send for IcmpEcho
impl Sync for IcmpEcho
impl Unpin for IcmpEcho
impl UnwindSafe for IcmpEcho
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