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

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.
Expand description

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into #41263)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.