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: u64The ID (serial number) of the key
flags: KeyFlagsA set of flags describing the state of the key
usage: u32Count 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: KeyTimeoutKey timeout
permissions: PermissionsKey permissions
uid: u32The 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: KeyTypeThe type of key
description: StringThe key description