pub fn peer_cred(socket: &UnixStream) -> Result<UCred, Error>
🔬 This is a nightly-only experimental API. (peer_credentials_unix_socket)
This is supported on Unix only.