[][src]Struct std::os::unix::net::UCred

pub struct UCred {
    pub uid: uid_t,
    pub gid: gid_t,
    pub pid: Option<pid_t>,
}
🔬 This is a nightly-only experimental API. (peer_credentials_unix_socket #42839)

unstable

This is supported on Unix only.

Credentials for a UNIX process for credentials passing.

Fields

uid: uid_t
🔬 This is a nightly-only experimental API. (peer_credentials_unix_socket #42839)

unstable

The UID part of the peer credential. This is the effective UID of the process at the domain socket's endpoint.

gid: gid_t
🔬 This is a nightly-only experimental API. (peer_credentials_unix_socket #42839)

unstable

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>
🔬 This is a nightly-only experimental API. (peer_credentials_unix_socket #42839)

unstable

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 Clone for UCred[src]

impl Copy for UCred[src]

impl Debug for UCred[src]

impl Eq for UCred[src]

impl Hash for UCred[src]

impl PartialEq<UCred> for UCred[src]

impl StructuralEq for UCred[src]

impl StructuralPartialEq for UCred[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.