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::{ConnectionProvider, RuntimeProvider, Spawn};
18pub use self::connection_provider::{GenericConnection, GenericConnector};
19#[cfg(feature = "mdns")]
20#[cfg_attr(docsrs, doc(cfg(feature = "mdns")))]
21pub(crate) use self::name_server::mdns_nameserver;
22pub use self::name_server::{GenericNameServer, NameServer};
23pub use self::name_server_pool::{GenericNameServerPool, NameServerPool};
24use self::name_server_state::NameServerState;
25use self::name_server_stats::NameServerStats;
26
27#[cfg(feature = "tokio-runtime")]
28#[cfg_attr(docsrs, doc(cfg(feature = "tokio-runtime")))]
29pub use self::connection_provider::tokio_runtime::{
30    TokioConnectionProvider, TokioHandle, TokioRuntimeProvider,
31};