Enum toluol::DnsRcode [−][src]
pub enum DnsRcode {
Show 20 variants
NOERROR,
FORMERR,
SERVFAIL,
NXDOMAIN,
NOTIMP,
REFUSED,
YXDOMAIN,
YXRRSET,
NXRRSET,
NOTAUTH,
NOTZONE,
DSOTYPENI,
BADVERSBADSIG,
BADKEY,
BADTIME,
BADMODE,
BADNAME,
BADALG,
BADTRUNC,
BADCOOKIE,
}
Expand description
Represents a DNS RCODE, including those introduced by EDNS. See here for further information.
Variants
Implementations
Encodes a DnsRcode as a byte (actually only the lower four bits are used). Note that for RCODEs BADVERSBADSIG and following only the lower four bits are encoded; the upper eight bits need to be encoded in an OPT record in the additional section of the DNS message.
Parses an encoded DnsRcode from a twelve bit value. If EDNS is used, the upper eight bits are stored in the OPT entry of the additional section and the lower four bits are stored in the DnsHeader. Returns an error if the given value does not represent a valid DNS RCODE.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DnsRcode
impl UnwindSafe for DnsRcode
Blanket Implementations
Mutably borrows from an owned value. Read more