Enum simple_dns::SimpleDnsError[][src]

pub enum SimpleDnsError {
    InvalidClass(u16),
    InvalidQClass(u16),
    InvalidQType(u16),
    InvalidServiceName,
    InvalidServiceLabel,
    InvalidCharacterString,
    InvalidHeaderData,
    InvalidDnsPacket,
}
Expand description

Error types for SimpleDns

Variants

InvalidClass

Invalid value for CLASS type

Tuple Fields of InvalidClass

0: u16
InvalidQClass

Invalid value for QCLASS type

Tuple Fields of InvalidQClass

0: u16
InvalidQType

Invalid value for QTYPE type

Tuple Fields of InvalidQType

0: u16
InvalidServiceName

Service Name doesn’t follow RFC rules

InvalidServiceLabel

Service Name Label doesn’t follow RFC rules

InvalidCharacterString

Character String doesn’t follow RFC rules

InvalidHeaderData

Provided data is not valid for a header

InvalidDnsPacket

Provided data is not valid for a DNS Packet

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.