Trait netsim::Ipv6AddrExt[][src]

pub trait Ipv6AddrExt {
    fn random_global() -> Ipv6Addr;
fn is_unicast_global(&self) -> bool;
fn is_unicast_link_local(&self) -> bool;
fn is_unicast_site_local(&self) -> bool;
fn is_unique_local(&self) -> bool;
fn is_documentation(&self) -> bool;
fn class(&self) -> Ipv6AddrClass;
fn from_netmask_bits(bits: u8) -> Ipv6Addr; }

Extension methods for IPv4 addresses

Required Methods

Get a random, global IPv6 address.

Check if this is a unicast global address

Check if this is a unicast link local address

Check if this is a unicast site local address

Check if this is a unique local address

Check if this is a documentation address

Clasify the address.

Create an Ipv6Addr representing a netmask

Implementations on Foreign Types

impl Ipv6AddrExt for Ipv6Addr
[src]

Get a random, global IPv6 address.

Implementors