Struct etherparse::IcmpEchoHeader
source · pub struct IcmpEchoHeader {
pub id: u16,
pub seq: u16,
}
Expand description
Echo Request & Response common parts between ICMPv4 and ICMPv6.
§RFC 4443 Description (ICMPv6)
Every node MUST implement an ICMPv6 Echo responder function that receives Echo Requests and originates corresponding Echo Replies. A node SHOULD also implement an application-layer interface for originating Echo Requests and receiving Echo Replies, for diagnostic purposes.
Fields§
§id: u16
An identifier to aid in matching Echo Replies to Echo Requests. May be zero.
seq: u16
A sequence number to aid in matching Echo Replies to Echo Requests. May be zero.
Implementations§
source§impl IcmpEchoHeader
impl IcmpEchoHeader
sourcepub fn from_bytes(bytes5to8: [u8; 4]) -> IcmpEchoHeader
pub fn from_bytes(bytes5to8: [u8; 4]) -> IcmpEchoHeader
Decodes the seq + id from the on the wire format.
Trait Implementations§
source§impl Clone for IcmpEchoHeader
impl Clone for IcmpEchoHeader
source§fn clone(&self) -> IcmpEchoHeader
fn clone(&self) -> IcmpEchoHeader
Returns a copy 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 IcmpEchoHeader
impl Debug for IcmpEchoHeader
source§impl PartialEq for IcmpEchoHeader
impl PartialEq for IcmpEchoHeader
source§fn eq(&self, other: &IcmpEchoHeader) -> bool
fn eq(&self, other: &IcmpEchoHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IcmpEchoHeader
impl Eq for IcmpEchoHeader
impl StructuralPartialEq for IcmpEchoHeader
Auto Trait Implementations§
impl Freeze for IcmpEchoHeader
impl RefUnwindSafe for IcmpEchoHeader
impl Send for IcmpEchoHeader
impl Sync for IcmpEchoHeader
impl Unpin for IcmpEchoHeader
impl UnwindSafe for IcmpEchoHeader
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