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
fn random_global() -> Ipv6Addr
Get a random, global IPv6 address.
fn is_unicast_global(&self) -> bool
Check if this is a unicast global address
fn is_unicast_link_local(&self) -> bool
Check if this is a unicast link local address
fn is_unicast_site_local(&self) -> bool
Check if this is a unicast site local address
fn is_unique_local(&self) -> bool
Check if this is a unique local address
fn is_documentation(&self) -> bool
Check if this is a documentation address
fn class(&self) -> Ipv6AddrClass
Clasify the address.
fn from_netmask_bits(bits: u8) -> Ipv6Addr
Create an Ipv6Addr
representing a netmask
Implementations on Foreign Types
impl Ipv6AddrExt for Ipv6Addr
[src]
impl Ipv6AddrExt for Ipv6Addr
fn random_global() -> Ipv6Addr
[src]
fn random_global() -> Ipv6Addr
Get a random, global IPv6 address.
fn is_unicast_global(&self) -> bool
[src]
fn is_unicast_global(&self) -> bool
fn is_unicast_link_local(&self) -> bool
[src]
fn is_unicast_link_local(&self) -> bool
fn is_unicast_site_local(&self) -> bool
[src]
fn is_unicast_site_local(&self) -> bool
fn is_unique_local(&self) -> bool
[src]
fn is_unique_local(&self) -> bool
fn is_documentation(&self) -> bool
[src]
fn is_documentation(&self) -> bool
fn class(&self) -> Ipv6AddrClass
[src]
fn class(&self) -> Ipv6AddrClass
fn from_netmask_bits(bits: u8) -> Ipv6Addr
[src]
fn from_netmask_bits(bits: u8) -> Ipv6Addr