pub struct CheckConfig {
pub concurrency: usize,
pub timeout: Duration,
pub enable_whois_fallback: bool,
pub enable_bootstrap: bool,
pub detailed_info: bool,
pub tlds: Option<Vec<String>>,
pub rdap_timeout: Duration,
pub whois_timeout: Duration,
pub custom_presets: HashMap<String, Vec<String>>,
}
Expand description
Configuration options for domain checking operations.
This struct allows fine-tuning of the domain checking behavior, including performance, timeout, and protocol preferences.
Fields§
§concurrency: usize
Maximum number of concurrent domain checks Default: 10, Range: 1-100
timeout: Duration
Timeout for each individual domain check Default: 5 seconds
enable_whois_fallback: bool
Whether to automatically fall back to WHOIS when RDAP fails Default: true
enable_bootstrap: bool
Whether to use IANA bootstrap registry for unknown TLDs Default: false (uses built-in registry only)
detailed_info: bool
Whether to extract detailed domain information for taken domains Default: false (just availability status)
tlds: Option<Vec<String>>
List of TLDs to check for base domain names If None, defaults to [“com”]
rdap_timeout: Duration
Custom timeout for RDAP requests (separate from overall timeout) Default: 3 seconds
whois_timeout: Duration
Custom timeout for WHOIS requests Default: 5 seconds
custom_presets: HashMap<String, Vec<String>>
Custom user-defined TLD presets from config files Default: empty
Implementations§
Source§impl CheckConfig
impl CheckConfig
Sourcepub fn with_concurrency(self, concurrency: usize) -> Self
pub fn with_concurrency(self, concurrency: usize) -> Self
Create a new configuration with custom concurrency.
Automatically caps concurrency at 100 to prevent resource exhaustion.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set custom timeout for domain checks.
Sourcepub fn with_whois_fallback(self, enabled: bool) -> Self
pub fn with_whois_fallback(self, enabled: bool) -> Self
Enable or disable WHOIS fallback.
Sourcepub fn with_bootstrap(self, enabled: bool) -> Self
pub fn with_bootstrap(self, enabled: bool) -> Self
Enable or disable IANA bootstrap registry.
Sourcepub fn with_detailed_info(self, enabled: bool) -> Self
pub fn with_detailed_info(self, enabled: bool) -> Self
Enable detailed domain information extraction.
Trait Implementations§
Source§impl Clone for CheckConfig
impl Clone for CheckConfig
Source§fn clone(&self) -> CheckConfig
fn clone(&self) -> CheckConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more