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.
Trait Implementations§
Source§impl Clone for RdapClient
impl Clone for RdapClient
Source§fn clone(&self) -> RdapClient
fn clone(&self) -> RdapClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Mutably borrows from an owned value. Read more