Struct nix::sys::socket::UnixCredentials
source · #[repr(transparent)]pub struct UnixCredentials(_);
Available on crate feature
socket
only.Expand description
Unix credentials of the sending process.
This struct is used with the SO_PEERCRED
ancillary message
and the SCM_CREDENTIALS
control message for UNIX sockets.
Implementations§
Trait Implementations§
source§impl Clone for UnixCredentials
impl Clone for UnixCredentials
source§fn clone(&self) -> UnixCredentials
fn clone(&self) -> UnixCredentials
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UnixCredentials
impl Debug for UnixCredentials
source§impl Default for UnixCredentials
impl Default for UnixCredentials
source§impl From<UnixCredentials> for ucred
impl From<UnixCredentials> for ucred
source§fn from(uc: UnixCredentials) -> Self
fn from(uc: UnixCredentials) -> Self
Converts to this type from the input type.
source§impl From<ucred> for UnixCredentials
impl From<ucred> for UnixCredentials
source§impl PartialEq<UnixCredentials> for UnixCredentials
impl PartialEq<UnixCredentials> for UnixCredentials
source§fn eq(&self, other: &UnixCredentials) -> bool
fn eq(&self, other: &UnixCredentials) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.