Function public_ip::addr_with[][src]

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

Given a Resolver and requested Version, attempts to produce an IP address (best effort).

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