An Ipv4 address.
struct Ipv4Addr(u8, u8, u8, u8)
| Position | Description |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 |
| Name | Description |
|---|---|
| any | Creates the unspecified address |
| broadcast | Creates the broadcast address |
| from_be | Creates a new Ipv4 address from a 32 bit integer in network byte order. |
| from_bytes | Creates a new Ipv4 address from given bytes. |
| Receiver | Name | Description |
|---|---|---|
self | is_6to4 | Compares the address to the 6to4 prefix |
self | is_current | Compares the address to the current prefix |
self | is_link_local | Compares the address to the link-local prefix |
self | is_loopback | Compares the address to the loopback prefix |
self | is_multicast | Compares the address to the multicast prefix |
self | is_private | Compares the address to the privat prefixes. |
self | is_shared | Compares the address to the shared prefix |
self | to_be | Turns the address into a 32 bit integer in network byte order. |
self | to_bytes | Turns the address into an array of bytes. |
| 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. |