Struct procfs::keyring::Key

source ·
pub struct Key {
    pub id: u64,
    pub flags: KeyFlags,
    pub usage: u32,
    pub timeout: KeyTimeout,
    pub permissions: Permissions,
    pub uid: u32,
    pub gid: Option<u32>,
    pub key_type: KeyType,
    pub description: String,
}
Expand description

A key

Fields§

§id: u64

The ID (serial number) of the key

§flags: KeyFlags

A set of flags describing the state of the key

§usage: u32

Count of the number of kernel credential structures that are pinning the key (approximately: the number of threads and open file references that refer to this key).

§timeout: KeyTimeout

Key timeout

§permissions: Permissions

Key permissions

§uid: u32

The user ID of the key owner

§gid: Option<u32>

The group ID of the key.

The value of None here means that the key has no group ID; this can occur in certain circumstances for keys created by the kernel.

§key_type: KeyType

The type of key

§description: String

The key description

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

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

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.