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]
impl UnixCredentialspub fn pid(&self) -> pid_t[src]
pub fn pid(&self) -> pid_tReturns the process identifier
pub fn uid(&self) -> uid_t[src]
pub fn uid(&self) -> uid_tReturns the user identifier
pub fn gid(&self) -> gid_t[src]
pub fn gid(&self) -> gid_tReturns the group identifier
Trait Implementations
impl Clone for UnixCredentials[src]
impl Clone for UnixCredentialsfn clone(&self) -> UnixCredentials[src]
fn clone(&self) -> UnixCredentialsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for UnixCredentials[src]
impl Copy for UnixCredentialsimpl PartialEq for UnixCredentials[src]
impl PartialEq for UnixCredentialsfn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for UnixCredentials[src]
impl Eq for UnixCredentialsimpl Debug for UnixCredentials[src]
impl Debug for UnixCredentialsAuto Trait Implementations
impl Send for UnixCredentials
impl Send for UnixCredentialsimpl Sync for UnixCredentials
impl Sync for UnixCredentials