pub struct RdapClient { /* private fields */ }Implementations§
Source§impl RdapClient
impl RdapClient
Sourcepub fn with_retry_policy(self, policy: RetryPolicy) -> Self
pub fn with_retry_policy(self, policy: RetryPolicy) -> Self
Sets the retry policy for transient network failures.
The default policy retries up to 3 times with exponential backoff.
Sourcepub fn without_retries(self) -> Self
pub fn without_retries(self) -> Self
Disables retries (single attempt only).
Sourcepub async fn lookup_domain(&self, domain: &str) -> Result<RdapResponse>
pub async fn lookup_domain(&self, domain: &str) -> Result<RdapResponse>
Looks up RDAP registration data for a domain.
Uses IANA bootstrap data to find the appropriate RDAP server for the TLD.
Sourcepub async fn lookup_ip(&self, ip: &str) -> Result<RdapResponse>
pub async fn lookup_ip(&self, ip: &str) -> Result<RdapResponse>
Looks up RDAP registration data for an IP address.
Uses IANA bootstrap data to find the appropriate RIR (Regional Internet Registry).
Sourcepub async fn lookup_asn(&self, asn: u32) -> Result<RdapResponse>
pub async fn lookup_asn(&self, asn: u32) -> Result<RdapResponse>
Looks up RDAP registration data for an Autonomous System Number (ASN).
Uses IANA bootstrap data to find the appropriate RIR for the ASN range.
Sourcepub async fn get_rdap_base_url_for_tld(&self, tld: &str) -> Option<String>
pub async fn get_rdap_base_url_for_tld(&self, tld: &str) -> Option<String>
Returns the RDAP base URL for a given TLD, if known from bootstrap data.
Loads bootstrap data if not already cached. Returns None if the TLD
has no registered RDAP server in the IANA bootstrap registry.
Trait Implementations§
Source§impl Clone for RdapClient
impl Clone for RdapClient
Source§fn clone(&self) -> RdapClient
fn clone(&self) -> RdapClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RdapClient
impl Debug for RdapClient
Auto Trait Implementations§
impl Freeze for RdapClient
impl RefUnwindSafe for RdapClient
impl Send for RdapClient
impl Sync for RdapClient
impl Unpin for RdapClient
impl UnsafeUnpin for RdapClient
impl UnwindSafe for RdapClient
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