Enum keyutils_raw::DefaultKeyring
source · pub enum DefaultKeyring {
NoChange,
ThreadKeyring,
ProcessKeyring,
SessionKeyring,
UserKeyring,
UserSessionKeyring,
GroupKeyring,
DefaultKeyring,
}
Expand description
An enumeration for the keyrings which may be set as the default.
Keys which are implicitly required via syscalls and other operations are placed in the default keyring.
Variants§
NoChange
Do not change the default keyring.
This may be used to get the current default keyring.
ThreadKeyring
Set the thread-specific keyring as the default.
ProcessKeyring
Set the process-specific keyring as the default.
SessionKeyring
Set the session-specific keyring as the default.
UserKeyring
Set the user-specific keyring as the default.
UserSessionKeyring
Set the user session-specific keyring as the default.
GroupKeyring
Set the user session-specific keyring as the default.
DefaultKeyring
Set the default keyring to the default logic.
Keys will be placed in the first available keyring of:
- thread-specific
- process-specific
- session-specific
- user-specific
Trait Implementations§
source§impl Debug for DefaultKeyring
impl Debug for DefaultKeyring
source§impl PartialEq<DefaultKeyring> for DefaultKeyring
impl PartialEq<DefaultKeyring> for DefaultKeyring
source§fn eq(&self, other: &DefaultKeyring) -> bool
fn eq(&self, other: &DefaultKeyring) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<i64> for DefaultKeyring
impl TryFrom<i64> for DefaultKeyring
§type Error = UnknownDefault
type Error = UnknownDefault
The type returned in the event of a conversion error.
source§fn try_from(id: c_long) -> Result<DefaultKeyring, UnknownDefault>
fn try_from(id: c_long) -> Result<DefaultKeyring, UnknownDefault>
Performs the conversion.
impl Eq for DefaultKeyring
impl StructuralEq for DefaultKeyring
impl StructuralPartialEq for DefaultKeyring
Auto Trait Implementations§
impl RefUnwindSafe for DefaultKeyring
impl Send for DefaultKeyring
impl Sync for DefaultKeyring
impl Unpin for DefaultKeyring
impl UnwindSafe for DefaultKeyring
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