Enum simple_dns::SimpleDnsError [−][src]
pub enum SimpleDnsError {
InvalidClass(u16),
InvalidQClass(u16),
InvalidQType(u16),
InvalidServiceName,
InvalidServiceLabel,
InvalidCharacterString,
InvalidHeaderData,
InvalidDnsPacket,
AttemptedInvalidOperation,
}Expand description
Error types for SimpleDns
Variants
InvalidClass(u16)
Tuple Fields
0: u16Invalid value for CLASS type
InvalidQClass(u16)
Tuple Fields
0: u16Invalid value for QCLASS type
InvalidQType(u16)
Tuple Fields
0: u16Invalid value for QTYPE type
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
AttemptedInvalidOperation
Attempted to perform an invalid operation
Trait Implementations
Performs the conversion.
