[][src]Struct pnet::packet::icmp::Icmp

pub struct Icmp {
    pub icmp_type: IcmpType,
    pub icmp_code: IcmpCode,
    pub checksum: u16,
    pub payload: Vec<u8, Global>,
}

Represents a generic ICMP packet.

Fields

icmp_type: IcmpTypeicmp_code: IcmpCodechecksum: u16payload: Vec<u8, Global>

Trait Implementations

impl Clone for Icmp[src]

impl Debug for Icmp[src]

Auto Trait Implementations

impl RefUnwindSafe for Icmp

impl Send for Icmp

impl Sync for Icmp

impl Unpin for Icmp

impl UnwindSafe for Icmp

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.