Struct lrs::socket::cmsg::Credentials

Process credentials.

Syntax

struct Credentials {
    process_id: i32,
    user_id: u32,
    group_id: u32,
}

Fields

NameDescription
process_id

The process id of a process.

user_id

The user id of a process.

group_id

The group id of a process.

Trait implementations

NameDescription
Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

Debug

Objects that can be formatted in a "debug" form.

Eq

Objects that implement the binary == and != operators.

MaybeClone

Objects that can be duplicated.

Pod

Objects that are safe to use if they contain a random bit pattern.

Remarks

Privileged process can send any ids. Unprivileged processes must send their process id and the other ids must be either the effective, real, or saved ids.

See also