Function public_ip::addr_with_details[][src]

pub async fn addr_with_details(
    resolver: impl Resolver<'_>,
    version: Version
) -> Option<(IpAddr, Details)>
Expand description

Given a Resolver and requested Version, attempts to produce an IP address along with the details of how it was resolved (best effort).

This function will attempt to resolve until the stream is empty and will drop/ignore any resolver errors.