An Ipv6 address.
struct Ipv6Addr(u16, u16, u16, u16, u16, u16, u16, u16)
| Position | Description |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 |
| Name | Description |
|---|---|
| dhcp_server_multicast | Creates the well-known "All DHCP servers" multicast address. |
| from_be_bytes | Creates an Ipv6 address from segments in network byte order. |
| from_bytes | Creates an Ipv6 address from segments in host byte order. |
| loopback | Creates the loopback address |
| multicast | Creates the well-known "All nodes" multicast address with a certain scope. |
| ntp_multicast | Creates the well-known "All NTP servers" multicast address with a certain scope. |
| router_multicast | Creates the well-known "All routers" multicast address with a certain scope. |
| unspecified | Creates the unspecified address |
| Receiver | Name | Description |
|---|---|---|
&self | is_6to4 | Compares the address to the 6to4 prefix |
&self | is_bmwg | Compares the address to the BWMG prefix |
&self | is_discard | Compares the address to the discard prefix |
&self | is_documentation | Compares the address to the documentation prefix |
&self | is_ipv4_compatible | Compares the address to the prefix |
&self | is_ipv4_mapped | Compares the address to the Ipv4-mapped prefix |
&self | is_ipv4_translated | Compares the address to the Ipv4-translated prefix |
&self | is_link_local | Compares the address to the link local prefix |
&self | is_multicast | Compares the address to the multicast prefix |
&self | is_orchidv2 | Compares the address to the ORCHIDv2 prefix |
&self | is_teredo | Compares the address to the Teredo prefix |
&self | is_unique_local | Compares the address to the unique local prefix |
&self | to_be_bytes | Transforms the address into an array of segments in network byte order. |
&self | to_bytes | Transforms the address into an array of segments in host byte order. |
| Name | Description |
|---|---|
| Clone | Objects that can be duplicated. |
| Copy | Objects that can safely be copied via |
| Debug | Objects that can be formatted in a "debug" form. |
| Eq | Objects that implement the binary |
| MaybeClone | Objects that can be duplicated. |
| Pod | Objects that are safe to use if they contain a random bit pattern. |
The individual segments should be stored in host byte order. That is, ::1 is stored as
Ipv6Addr(0, 0, 0, 0, 0, 0, 0, 1)