Struct nix::sys::socket::UnixCredentials
[−]
[src]
#[repr(C)]pub struct UnixCredentials(_);
Unix credentials of the sending process.
This struct is used with the SO_PEERCRED ancillary message for UNIX sockets.
Methods
impl UnixCredentials[src]
pub fn pid(&self) -> pid_t[src]
Returns the process identifier
pub fn uid(&self) -> uid_t[src]
Returns the user identifier
pub fn gid(&self) -> gid_t[src]
Returns the group identifier
Trait Implementations
impl Clone for UnixCredentials[src]
fn clone(&self) -> UnixCredentials[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for UnixCredentials[src]
impl PartialEq for UnixCredentials[src]
fn eq(&self, other: &Self) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.