Skip to main content

trust_dns_resolver/name_server/
mod.rs

1// Copyright 2015-2019 Benjamin Fry <benjaminfry@me.com>
2//
3// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
4// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5// http://opensource.org/licenses/MIT>, at your option. This file may not be
6// copied, modified, or distributed except according to those terms.
7
8//! A module with associated items for working with nameservers
9
10mod connection_provider;
11#[allow(clippy::module_inception)]
12mod name_server;
13mod name_server_pool;
14mod name_server_state;
15mod name_server_stats;
16
17pub use self::connection_provider::{
18    ConnectionProvider, GenericConnection, GenericConnectionProvider, RuntimeProvider, Spawn,
19};
20pub use self::name_server::NameServer;
21#[cfg(feature = "mdns")]
22#[cfg_attr(docsrs, doc(cfg(feature = "mdns")))]
23pub(crate) use self::name_server::mdns_nameserver;
24pub use self::name_server_pool::NameServerPool;
25use self::name_server_state::NameServerState;
26use self::name_server_stats::InternalNameServerStats;
27pub use self::name_server_stats::NameServerStats;
28
29#[cfg(feature = "tokio-runtime")]
30#[cfg_attr(docsrs, doc(cfg(feature = "tokio-runtime")))]
31pub use self::connection_provider::tokio_runtime::{
32    TokioConnection, TokioConnectionProvider, TokioHandle, TokioRuntime,
33};