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