Skip to content

Commit

Permalink
refactor(dns): reorder items in lazy_resolver module
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed Nov 5, 2023
1 parent 7ad1f61 commit cd369aa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/dns/lazy_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ pub struct Config {
pub timeout: Duration,
}

/// The address family.
#[derive(Debug, Copy, Clone)]
pub enum IpAddrFamily {
/// Internet Protocol v4.
Ipv4,
/// Internet Protocol v6.
Ipv6,
}

/// How DNS queries will be resolved.
#[derive(Debug, Copy, Clone)]
pub enum ResolveMethod {
Expand All @@ -36,6 +27,15 @@ pub enum ResolveMethod {
Cloudflare,
}

/// The address family.
#[derive(Debug, Copy, Clone)]
pub enum IpAddrFamily {
/// Internet Protocol v4.
Ipv4,
/// Internet Protocol v6.
Ipv6,
}

impl Config {
/// Create an IPv4 `Config`.
#[must_use]
Expand Down

0 comments on commit cd369aa

Please sign in to comment.