A socket address.
struct SockAddr {
/* private fields */
}| Name | Description |
|---|---|
| from_bytes | Creates a socket address from a sequence of bytes. |
| from_bytes_unchecked | Creates a socket address from a sequence of bytes without validation. |
| from_mut_bytes | Creates a mutable socket address from a sequence of bytes. |
| from_mut_bytes_unchecked | Creates a mutable socket address from a sequence of bytes without validation. |
| Receiver | Name | Description |
|---|---|---|
&self | addr_type | Returns the address type of the socket address. |
&self | as_ipv4 | Returns the socket address as an Ipv4 socket address. |
&self | as_ipv6 | Returns the socket address as an Ipv6 socket address. |
&mut self | as_mut_ipv4 | Returns the socket address as a mutable Ipv4 socket address. |
&mut self | as_mut_ipv6 | Returns the socket address as a mutable Ipv6 socket address. |
&mut self | as_mut_unix | Returns the socket address as a mutable Unix socket address. |
&self | as_unix | Returns the socket address as a Unix socket address. |
| Name | Description |
|---|---|
| Debug | Objects that can be formatted in a "debug" form. |