Struct UCred

struct UCred { ... }

Credentials of a process.

Implementations

impl UCred

fn uid(self: &Self) -> uid_t

Gets UID (user ID) of the process.

fn gid(self: &Self) -> gid_t

Gets GID (group ID) of the process.

fn pid(self: &Self) -> Option<pid_t>

Gets PID (process ID) of the process.

This is only implemented under Linux, Android, iOS, macOS, Solaris and Illumos. On other platforms this will always return None.

impl Clone for UCred

fn clone(self: &Self) -> UCred

impl Copy for UCred

impl Debug for UCred

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for UCred

impl Freeze for UCred

impl Hash for UCred

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for UCred

fn eq(self: &Self, other: &UCred) -> bool

impl RefUnwindSafe for UCred

impl Send for UCred

impl StructuralPartialEq for UCred

impl Sync for UCred

impl Unpin for UCred

impl UnsafeUnpin for UCred

impl UnwindSafe for UCred

impl<T> Any for UCred

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for UCred

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for UCred

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for UCred

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for UCred

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for UCred

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for UCred

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for UCred

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for UCred

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>