[−][src]Function unix_cred::get_peer_pid_ids
pub fn get_peer_pid_ids(
sock: &UnixStream
) -> Result<(Option<pid_t>, uid_t, gid_t)>
Get the PID, UID, and GID of the given socket's peer.
This only works on Linux, OpenBSD, NetBSD, and FreeBSD 13+. On other operating systems, this
function is not available. On FreeBSD 12 and earlier, the returned PID is always None
.