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§
source§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)