pub struct UCred {
pub uid: uid_t,
pub gid: gid_t,
pub pid: Option<pid_t>,
}
🔬This is a nightly-only experimental API. (
peer_credentials_unix_socket
#42839)Available on Unix only.
Expand description
Credentials for a UNIX process for credentials passing.
Fields§
§uid: uid_t
🔬This is a nightly-only experimental API. (
peer_credentials_unix_socket
#42839)The UID part of the peer credential. This is the effective UID of the process at the domain socket’s endpoint.
gid: gid_t
🔬This is a nightly-only experimental API. (
peer_credentials_unix_socket
#42839)The GID part of the peer credential. This is the effective GID of the process at the domain socket’s endpoint.
pid: Option<pid_t>
🔬This is a nightly-only experimental API. (
peer_credentials_unix_socket
#42839)The PID part of the peer credential. This field is optional because the PID part of the peer credentials is not supported on every platform. On platforms where the mechanism to discover the PID exists, this field will be populated to the PID of the process at the domain socket’s endpoint. Otherwise, it will be set to None.