sparkle/
lib.rs

1//! Sparkle is a DNS server framework, useful for writing DNS server
2//! applications that do dynamic per-request processing.
3
4mod format;
5mod serial;
6mod ttl;
7mod wire;
8pub mod server;
9
10pub use format::{Class, Format, Name, QClass, QType, Question, RData, ResourceRecord, Type, class, qclass, qtype,
11                 type_};
12pub use serial::SerialNumber;
13pub use ttl::Ttl;
14pub use wire::{WireDecoder, WireEncoder, WireFormat, WireLabelIter, WireMessage, WireName};
15
16/// Encodes a DNS response message to an external buffer, starting with the
17/// answers section.
18pub type WireResponseEncoder<'a> = WireEncoder<'a, wire::marker::Response, wire::marker::AnswerSection>;
19
20/// Returns a reference to an external buffer containing a completely encoded
21/// DNS response message.
22pub type WireResponseEncoderDone<'a> = WireEncoder<'a, wire::marker::Response, wire::marker::Done>;