Function rustix::net::sockopt::set_socket_passcred
pub fn set_socket_passcred<Fd: AsFd>(fd: &Fd, passcred: bool) -> io::Result<()>
The portability is definied by:
#[cfg(any(target_os = "android", target_os = "linux"))]