pub struct SmartLookup { /* private fields */ }Implementations§
Source§impl SmartLookup
impl SmartLookup
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SmartLookup that runs RDAP and WHOIS concurrently, falling back to an availability check if both fail.
Sourcepub fn prefer_rdap(self, prefer: bool) -> Self
👎Deprecated: This field has no effect. RDAP is always tried concurrently with WHOIS.
pub fn prefer_rdap(self, prefer: bool) -> Self
This field has no effect. RDAP is always tried concurrently with WHOIS.
Deprecated: both protocols are now always attempted concurrently. This method is kept for API compatibility but has no effect.
Sourcepub fn include_fallback(self, include: bool) -> Self
👎Deprecated: This field has no effect. RDAP is always tried concurrently with WHOIS.
pub fn include_fallback(self, include: bool) -> Self
This field has no effect. RDAP is always tried concurrently with WHOIS.
Deprecated: WHOIS data is now always attached when available. This method is kept for API compatibility but has no effect.
Sourcepub async fn lookup(&self, domain: &str) -> Result<LookupResult>
pub async fn lookup(&self, domain: &str) -> Result<LookupResult>
Performs a smart lookup for a domain, trying both RDAP and WHOIS concurrently. Falls back to an availability check if both fail. Results are cached for 5 minutes to avoid redundant network calls.
Sourcepub async fn lookup_with_progress(
&self,
domain: &str,
progress: Option<LookupProgressCallback>,
) -> Result<LookupResult>
pub async fn lookup_with_progress( &self, domain: &str, progress: Option<LookupProgressCallback>, ) -> Result<LookupResult>
Performs a lookup with an optional progress callback. The callback is called with messages describing the current phase. Results are cached for 5 minutes. Concurrent lookups for the same domain are coalesced — only one network race runs per domain at a time.
Sourcepub fn clear_cache()
pub fn clear_cache()
Clears the lookup result cache.
Trait Implementations§
Source§impl Clone for SmartLookup
impl Clone for SmartLookup
Source§fn clone(&self) -> SmartLookup
fn clone(&self) -> SmartLookup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more