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

pub struct IcmpType(pub u8);

Represents the "ICMP type" header field.

Implementations

impl IcmpType[src]

pub fn new(val: u8) -> IcmpType[src]

Create a new IcmpType instance.

Trait Implementations

impl Clone for IcmpType[src]

impl Copy for IcmpType[src]

impl Debug for IcmpType[src]

impl Eq for IcmpType[src]

impl Hash for IcmpType[src]

impl Ord for IcmpType[src]

impl PartialEq<IcmpType> for IcmpType[src]

impl PartialOrd<IcmpType> for IcmpType[src]

impl PrimitiveValues for IcmpType[src]

type T = (u8,)

A tuple of types, to represent the current value.

impl StructuralEq for IcmpType[src]

impl StructuralPartialEq for IcmpType[src]

Auto Trait Implementations

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.