Expand description
Credentials for a UNIX process for credentials passing.
Fields
uid: uid_t
The UID part of the peer credential. This is the effective UID of the process at the domain socket’s endpoint.
gid: gid_t
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>
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.
Trait Implementations
impl Copy for UCred
impl Eq for UCred
impl StructuralEq for UCred
impl StructuralPartialEq for UCred
Auto Trait Implementations
impl RefUnwindSafe for UCred
impl Send for UCred
impl Sync for UCred
impl Unpin for UCred
impl UnwindSafe for UCred
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more