[][src]Struct rdap_client::Client

pub struct Client { /* fields omitted */ }

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]

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]

Query given RDAP server for IP network.

pub async fn query_asn<'_, '_>(
    &'_ self,
    server: &'_ str,
    asn: u32
) -> Result<AutNum, ClientError>
[src]

Query given RDAP server for AS number.

pub async fn query_nameserver<'_, '_, '_>(
    &'_ self,
    server: &'_ str,
    nameserver: &'_ str
) -> Result<Nameserver, ClientError>
[src]

Query given RDAP server for nameserver handle.

pub async fn query_domain<'_, '_, '_>(
    &'_ self,
    server: &'_ str,
    domain: &'_ str
) -> Result<Domain, ClientError>
[src]

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]

pub async fn query_entity<'_, '_, '_>(
    &'_ self,
    server: &'_ str,
    entity: &'_ str
) -> Result<Entity, ClientError>
[src]

Query given RDAP server for entity by its name.

pub async fn search_nameserver<'_, '_>(
    &'_ self,
    server: &'_ str,
    search_nameserver: SearchNameserver
) -> Result<NameserverSearchResults, ClientError>
[src]

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]

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]

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]

Method from arin_originas0 extension.. Given server must support this method. Returns result of IpNetworks.

pub async fn help<'_, '_>(
    &'_ self,
    server: &'_ str
) -> Result<Help, ClientError>
[src]

Help method.

Trait Implementations

impl Default for Client[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.