[][src]Enum pcap_file::pcapng::NameResolutionOption

pub enum NameResolutionOption<'a> {
    Comment(&'a str),
    NsDnsName(&'a str),
    NsDnsIpv4Addr(&'a [u8]),
    NsDnsIpv6Addr(&'a [u8]),
    CustomBinary(CustomBinaryOption<'a>),
    CustomUtf8(CustomUtf8Option<'a>),
    Unknown(UnknownOption<'a>),
}

Variants

Comment(&'a str)

The opt_comment option is a UTF-8 string containing human-readable comment text that is associated to the current block.

NsDnsName(&'a str)

The ns_dnsname option is a UTF-8 string containing the name of the machine (DNS server) used to perform the name resolution.

NsDnsIpv4Addr(&'a [u8])

The ns_dnsIP4addr option specifies the IPv4 address of the DNS server.

NsDnsIpv6Addr(&'a [u8])

The ns_dnsIP6addr option specifies the IPv6 address of the DNS server.

CustomBinary(CustomBinaryOption<'a>)

Custom option containing binary octets in the Custom Data portion

CustomUtf8(CustomUtf8Option<'a>)

Custom option containing a UTF-8 string in the Custom Data portion

Unknown(UnknownOption<'a>)

Unknown option

Trait Implementations

impl<'a> Clone for NameResolutionOption<'a>[src]

impl<'a> Debug for NameResolutionOption<'a>[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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