Crate flex_dns

Source

Re-exports§

pub use buffer::Buffer;
pub use buffer::MutBuffer;

Modules§

additional
answer
buffer
characters
header
name
name_servers
question
rdata

Macros§

dns_characters
Create a new Characters from a byte slice. The first byte of the slice will be the length of the sequence. Only insert the characters, not the length. The maximum length of the sequence is 255. This macro accepts an expression as input, which is evaluated at compile time. If you want to create a Characters from a byte slice of unknown length, use the Characters::new function instead.
dns_name
Create a new DnsName from a byte slice. The domain name must be dot separated. The constructor will check convert the domain name to DNS wire format and check if it is valid. This macro accepts an expression as input, which is evaluated at compile time. If you want to create a DnsName from a byte slice of unknown length, use the DnsName::new function instead.
dns_txt
Create a new Txt from byte slices. The data will be concatenated and converted to DNS wire format. The maximum length of a single text value is 255 bytes. This macro accepts an expression as input, which is evaluated at compile time. If you want to create a Txt from byte slices of unknown length, use the Txt::new function instead.

Structs§

DnsMessage
A DNS message.

Enums§

BufferError
DnsError
DnsMessageError