Method lrs::socket::SockAddr::from_mut_bytes

Creates a mutable socket address from a sequence of bytes.

Syntax

impl SockAddr {
    fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut 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.