Trait p2p::IpAddrExt[][src]

pub trait IpAddrExt {
    fn is_global(&self) -> bool;
fn is_private(&self) -> bool;
fn expand_local_unspecified(&self) -> Result<Vec<IpAddr>>;
fn unspecified_to_localhost(&self) -> IpAddr; }

Some helpful additional methods for IpvAddr.

Required Methods

Check whether an IP address is global.

Check whether an IP address belongs to a private subnet.

If the IP address is an unspecified address (eg. 0.0.0.0), then it is expanded into a vector with a seperate IP address for each network interface.

If this is the unspecified address then map it to the localhost address.

Implementations on Foreign Types

impl IpAddrExt for IpAddr
[src]

Implementors