An Ipv4 socket address.
struct Ipv4SockAddr {
/* private fields */
}| Name | Description |
|---|---|
| from_addr_port | Creates a new Ipv4 socket address from an address and a port. |
| from_bytes | Creates an Ipv4 socket address from given bytes. |
| from_bytes_unchecked | Creates an Ipv4 socket address from given bytes without validation. |
| from_mut_bytes | Creates a mutable Ipv4 socket address from given bytes. |
| from_mut_bytes_unchecked | Creates a mutable Ipv4 socket address from given bytes without validation. |
| Receiver | Name | Description |
|---|---|---|
&self | addr | Returns the Ipv4 address of the socket address. |
&self | port | Returns the port of the socket address. |
&mut self | set_addr | Sets the Ipv4 address of the socket address. |
&mut self | set_port | Sets the port of the socket address. |
| Name | Description |
|---|---|
| Debug | Objects that can be formatted in a "debug" form. |