rust / latest / std / os / unix / ucred / impl_linux / fn.peer_cred.html

Function std::os::unix::ucred::impl_linux::peer_cred

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

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/os/unix/ucred/impl_linux/fn.peer_cred.html