[−][src]Struct rdap_client::Client
RDAP client.
Methods
impl Client
[src]
pub fn new() -> Self
[src]
Creates new Client
with with default configuration.
pub fn with_reqwest_client(client: Client) -> Self
[src]
Creates new Client
with given reqwest client.
pub async fn fetch_bootstrap<'_>(&'_ self) -> Result<Bootstrap, Box<dyn Error>>
[src]
Fetch boostrap from IANA for ASN, IPv4 and IPV6, domains (DNS) and object tags.
pub async fn query_ip<'_, '_, I: Into<IpAddr>>(
&'_ self,
server: &'_ str,
ip: I
) -> Result<IpNetwork, ClientError>
[src]
&'_ self,
server: &'_ str,
ip: I
) -> Result<IpNetwork, ClientError>
Query given RDAP server for IPv4 or IPv6 address.
pub async fn query_ip_network<'_, '_, I: Into<IpNetwork>>(
&'_ self,
server: &'_ str,
ip_network: I
) -> Result<IpNetwork, ClientError>
[src]
&'_ self,
server: &'_ str,
ip_network: I
) -> Result<IpNetwork, ClientError>
Query given RDAP server for IP network.
pub async fn query_asn<'_, '_>(
&'_ self,
server: &'_ str,
asn: u32
) -> Result<AutNum, ClientError>
[src]
&'_ self,
server: &'_ str,
asn: u32
) -> Result<AutNum, ClientError>
Query given RDAP server for AS number.
pub async fn query_nameserver<'_, '_, '_>(
&'_ self,
server: &'_ str,
nameserver: &'_ str
) -> Result<Nameserver, ClientError>
[src]
&'_ self,
server: &'_ str,
nameserver: &'_ str
) -> Result<Nameserver, ClientError>
Query given RDAP server for nameserver handle.
pub async fn query_domain<'_, '_, '_>(
&'_ self,
server: &'_ str,
domain: &'_ str
) -> Result<Domain, ClientError>
[src]
&'_ self,
server: &'_ str,
domain: &'_ str
) -> Result<Domain, ClientError>
Query given RDAP server for domain by name.
pub async fn query_reverse_domain<'_, '_, I: Into<IpAddr>>(
&'_ self,
server: &'_ str,
ip: I
) -> Result<Domain, ClientError>
[src]
&'_ self,
server: &'_ str,
ip: I
) -> Result<Domain, ClientError>
pub async fn query_entity<'_, '_, '_>(
&'_ self,
server: &'_ str,
entity: &'_ str
) -> Result<Entity, ClientError>
[src]
&'_ self,
server: &'_ str,
entity: &'_ str
) -> Result<Entity, ClientError>
Query given RDAP server for entity by its name.
pub async fn search_nameserver<'_, '_>(
&'_ self,
server: &'_ str,
search_nameserver: SearchNameserver
) -> Result<NameserverSearchResults, ClientError>
[src]
&'_ self,
server: &'_ str,
search_nameserver: SearchNameserver
) -> Result<NameserverSearchResults, ClientError>
Search given RDAP server for nameserver by name or IP address.
pub async fn search_domain<'_, '_>(
&'_ self,
server: &'_ str,
search_domain: SearchDomain
) -> Result<DomainSearchResults, ClientError>
[src]
&'_ self,
server: &'_ str,
search_domain: SearchDomain
) -> Result<DomainSearchResults, ClientError>
Search given RDAP server for domain by name, NS LDH name or NS IP address.
pub async fn search_entity<'_, '_>(
&'_ self,
server: &'_ str,
search_entity: SearchEntity
) -> Result<EntitySearchResults, ClientError>
[src]
&'_ self,
server: &'_ str,
search_entity: SearchEntity
) -> Result<EntitySearchResults, ClientError>
Search given RDAP server for domain by FN or handle.
pub async fn search_networks_by_origin_as<'_, '_>(
&'_ self,
server: &'_ str,
asn: u32
) -> Result<ArinOriginas0OriginautnumsResults, ClientError>
[src]
&'_ self,
server: &'_ str,
asn: u32
) -> Result<ArinOriginas0OriginautnumsResults, ClientError>
Method from arin_originas0
extension..
Given server must support this method. Returns result of IpNetwork
s.
pub async fn help<'_, '_>(
&'_ self,
server: &'_ str
) -> Result<Help, ClientError>
[src]
&'_ self,
server: &'_ str
) -> Result<Help, ClientError>
Help method.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,