Crate flex_dns

source ·

Re-exports

Modules

Macros

  • 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.
  • 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.
  • 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

Enums