Struct toluol::DnsQuestion [−][src]
Expand description
Represents a DNS question, i.e. an entry in the question section of a DNS message. See RFC 1035 for further information.
Fields
qname: String
qtype: DnsType
qclass: DnsClass
Implementations
Encodes a DnsQuestion as a series of bytes.
Returns an error if a method defined in byteorder::WriteBytesExt
returns an error.
Parses an encoded DnsQuestion from a series of bytes.
Returns an error if DnsMessage::parse_qname()
, DnsType::parse()
, DnsClass::parse()
or a method defined in byteorder::ReadBytesExt
return an error.
Returns a string representing the record in the canonical format, with the owner padded to the given length.