pub struct IcmpPacketInfo<'a> {
pub src_ip: [u8; 4],
pub dst_ip: [u8; 4],
pub icmp_type: IcmpType,
pub code: u8,
pub identifier: u16,
pub sequence: u16,
pub payload: &'a [u8],
}Fields§
§src_ip: [u8; 4]§dst_ip: [u8; 4]§icmp_type: IcmpType§code: u8§identifier: u16§sequence: u16§payload: &'a [u8]Trait Implementations§
Source§impl<'a> Clone for IcmpPacketInfo<'a>
impl<'a> Clone for IcmpPacketInfo<'a>
Source§impl<'a> Debug for IcmpPacketInfo<'a>
impl<'a> Debug for IcmpPacketInfo<'a>
impl<'a> Eq for IcmpPacketInfo<'a>
Source§impl<'a> PartialEq for IcmpPacketInfo<'a>
impl<'a> PartialEq for IcmpPacketInfo<'a>
impl<'a> StructuralPartialEq for IcmpPacketInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for IcmpPacketInfo<'a>
impl<'a> RefUnwindSafe for IcmpPacketInfo<'a>
impl<'a> Send for IcmpPacketInfo<'a>
impl<'a> Sync for IcmpPacketInfo<'a>
impl<'a> Unpin for IcmpPacketInfo<'a>
impl<'a> UnsafeUnpin for IcmpPacketInfo<'a>
impl<'a> UnwindSafe for IcmpPacketInfo<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.