Method lrs::socket::SockAddr::from_bytes

Creates a socket address from a sequence of bytes.

Syntax

impl SockAddr {
    fn from_bytes(bytes: &[u8]) -> Result<&SockAddr, Errno>
}

Arguments

NameDescription
bytes

The buffer containing the address.

Remarks

This fails if the socket address contains invalid data or an address that has not been wrapped.