Function mio::sys::unix::uds::path_offset

source ยท
fn path_offset(sockaddr: &sockaddr_un) -> usize
Expand description

Get the sun_path field offset of sockaddr_un for the target OS.

On Linux, this function equates to the same value as size_of::<sa_family_t>(), but some other implementations include other fields before sun_path, so the expression more portably describes the size of the address structure.