[][src]Enum toluol::DnsOpcode

pub enum DnsOpcode {
    QUERY,
    IQUERY,
    STATUS,
    NOTIFY,
    UPDATE,
    DSO,
}

Represents a DNS OpCode. See here for further information.

Variants

QUERY
IQUERY
STATUS
NOTIFY
UPDATE
DSO

Implementations

impl DnsOpcode[src]

pub fn encode(&self) -> u8[src]

Encodes a DnsOpcode as a byte.

pub fn parse(val: u8) -> Result<DnsOpcode, ParseError>[src]

Parses an encoded DnsOpcode from a byte. Returns an error if the given byte does not represent a valid DNS OpCode.

Trait Implementations

impl Clone for DnsOpcode[src]

impl Copy for DnsOpcode[src]

impl Debug for DnsOpcode[src]

impl Display for DnsOpcode[src]

impl PartialEq<DnsOpcode> for DnsOpcode[src]

impl StructuralPartialEq for DnsOpcode[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> ToString for T where
    T: Display + ?Sized
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,