IpAddrExt

Trait IpAddrExt 

Source
pub trait IpAddrExt {
    // Required methods
    fn subnet(&self, mask: &SubnetMask) -> Subnet;
    fn is_global(&self) -> bool;
}
Expand description

Extension trait providing subnet helpers for IpAddr.

Required Methods§

Source

fn subnet(&self, mask: &SubnetMask) -> Subnet

Return the Subnet for the given SubnetMask.

Source

fn is_global(&self) -> bool

Determine if this IP address is globally routable.

Implementations on Foreign Types§

Source§

impl IpAddrExt for IpAddr

Source§

fn subnet(&self, mask: &SubnetMask) -> Subnet

Source§

fn is_global(&self) -> bool

Implementors§