Trait netsim::Ipv4AddrExt[][src]

pub trait Ipv4AddrExt {
    fn random_global() -> Ipv4Addr;
fn is_global(&self) -> bool;
fn is_reserved(&self) -> bool;
fn class(&self) -> Ipv4AddrClass;
fn from_netmask_bits(bits: u8) -> Ipv4Addr; }

Extension methods for IPv4 addresses

Required Methods

Get a random, global IPv4 address.

Returns true if this is a global IPv4 address

Returns true if this is a reserved IPv4 address.

Clasify the address.

Create an Ipv4Addr representing a netmask

Implementations on Foreign Types

impl Ipv4AddrExt for Ipv4Addr
[src]

Implementors