Method lrs::socket::unix::UnixSockAddr::from_path

Creates a new path Unix socket address.

Syntax

impl UnixSockAddr {
    fn from_path<T>(buf: &mut [u8], path: T) -> Result<&mut UnixSockAddr, Errno>
        where T: ToCStr,
}

Arguments

NameDescription
buf

The buffer in which the address will be stored.

path

The path of the socket address.