pub struct Ip<'a> { /* private fields */ }Expand description
IP lookups. Get one with Client::ip.
Implementations§
Source§impl<'a> Ip<'a>
impl<'a> Ip<'a>
Sourcepub async fn lookup(&self, target: &str) -> Result<LookupResult, Error>
pub async fn lookup(&self, target: &str) -> Result<LookupResult, Error>
Full lookup of an IPv4 or IPv6 address, CIDR block or hostname.
Sourcepub async fn asn(&self, ip: &str) -> Result<AsnResponse, Error>
pub async fn asn(&self, ip: &str) -> Result<AsnResponse, Error>
Autonomous system of an address.
Sourcepub async fn whois(&self, domain: &str) -> Result<WhoisResponse, Error>
pub async fn whois(&self, domain: &str) -> Result<WhoisResponse, Error>
WHOIS record of a domain.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Ip<'a>
impl<'a> !UnwindSafe for Ip<'a>
impl<'a> Freeze for Ip<'a>
impl<'a> Send for Ip<'a>
impl<'a> Sync for Ip<'a>
impl<'a> Unpin for Ip<'a>
impl<'a> UnsafeUnpin for Ip<'a>
Blanket Implementations§
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