drasil_dns/
lib.rs

1
2pub(crate) mod buffer;
3pub mod types;
4
5/// Provides error type for the crate
6pub mod error;
7
8/// Provides the `Header` struct
9pub mod header;
10
11/// Provides the `Question` struct
12pub mod question;
13
14/// Provides the `Record` enum
15pub mod record;
16
17/// Provides the `Packet` struct
18pub mod packet;
19
20pub use crate::{
21  error::DrasilDNSError,
22  types::{
23    RecordType,
24    RecordClass,
25    dnssec::{DNSSECAlgorithm, DNSSECDigestType},
26  },
27  packet::{
28    Packet,
29    builder::PacketBuilder,
30  },
31  header::{
32    Header,
33    RequestKind,
34    ResponseCode,
35  },
36  question::Question,
37  record::{
38    Record,
39    edns::{EDNSOption, EDNSOptionType},
40  },
41};