1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Various client implementations.
//!
//! *rsdns* is first and foremost an asynchronous DNS client. It supports three different
//! async runtimes: `tokio`, `async-std` and `smol`. Additionally, *rsdns* has a synchronous
//! client implemented using the Rust standard library's `std::net` primitives.
//! Each runtime has its own submodule named after the runtime: [`tokio`], [`async_std`] and
//! [`smol`]. The synchronous client is implemented in the [`std`] submodule.
//!
//! All clients have exactly the same API. The set of functions is the same, while in
//! asynchronous clients the functions are `async`.
//!
//! Usually an application will use only one of the clients. Hence, none of them is enabled by
//! default. The crate features `net-tokio`, `net-async-std` and `net-smol` enable the async
//! clients for the corresponding runtime. `net-std` enables the synchronous client.
//! The `clients` module is enabled only if one of the client implementations is enabled.
//!
//! [`tokio`]: crate::clients::tokio
//! [`async_std`]: crate::clients::async_std
//! [`smol`]: crate::clients::smol
//! [`std`]: crate::clients::std
//! [`std::net`]: https://doc.rust-lang.org/std/net
//! [`clients`]: crate::clients
/// Client implementation with [`tokio`](https://docs.rs/tokio).
/// Client implementation with [`async-std`](https://docs.rs/async-std).
/// Client implementation with [`smol`](https://docs.rs/smol).
/// Client implementation with [`std::net`](https://doc.rust-lang.org/std/net).
pub use *;