Function getip::get_ip[][src]

pub async fn get_ip(
    ip_type: IpType,
    ip_scope: IpScope,
    nic: Option<&str>
) -> Result<IpAddr>
Expand description

Receive a IP address with the specified type.

ip_type: Type of the IP address. nic: Name of the interface, Ignored if ip_type is Global