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.
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 moreSource§impl Debug for SmartLookup
impl Debug for SmartLookup
Auto Trait Implementations§
impl Freeze for SmartLookup
impl RefUnwindSafe for SmartLookup
impl Send for SmartLookup
impl Sync for SmartLookup
impl Unpin for SmartLookup
impl UnsafeUnpin for SmartLookup
impl UnwindSafe for SmartLookup
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request