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
//! Predicate-based categorization for `hickory_resolver::net::NetError`.
//!
//! Provides a stable way to map resolver errors to domain_status-friendly kinds
//! without string matching, so DNS categorization is consistent across
//! `dns/records.rs` and `extract_error_type()`.
use NetError;
/// Kind of DNS resolution error for categorization (predicate-based, not string-based).
/// Categorizes a resolver error using its predicate API.
///
/// Use this when you have a `NetError` (e.g. from the error chain) so DNS
/// categorization does not rely on error message text.