Struct tokio::net::unix::UCred [−][src]
pub struct UCred { /* fields omitted */ }
Credentials of a process
Implementations
impl UCred
[src]
impl UCred
[src]pub fn uid(&self) -> uid_t
[src]
Gets UID (user ID) of the process.
pub fn gid(&self) -> gid_t
[src]
Gets GID (group ID) of the process.
pub fn pid(&self) -> Option<pid_t>
[src]
Gets PID (process ID) of the process.
This is only implemented under Linux, Android, iOS, macOS, Solaris and
Illumos. On other platforms this will always return None
.