Enum linux_keyutils::KeyError
source · pub enum KeyError {
Show 15 variants
AccessDenied,
QuotaExceeded,
BadAddress,
InvalidArguments,
KeyExpired,
KeyRevoked,
KeyRejected,
KeyringDoesNotExist,
KeyDoesNotExist,
OutOfMemory,
InvalidDescription,
InvalidIdentifier,
OperationNotSupported,
WriteError,
Unknown(i32),
}
Expand description
Error type for this library, optionally implements std::error::Error
.
Variants§
AccessDenied
The keyring wasn’t available for modification by the user.
QuotaExceeded
The key quota for this user would be exceeded by creating this key or linking it to the keyring.
BadAddress
One or more of type, description, and payload points outside process’s accessible address space.
InvalidArguments
Provided bad arguments
KeyExpired
The keyring has expired.
KeyRevoked
The keyring has been revoked.
KeyRejected
The attempt to generate a new key was rejected.
KeyringDoesNotExist
The keyring doesn’t exist.
KeyDoesNotExist
They key does not exist
OutOfMemory
Insufficient memory to create a key.
InvalidDescription
Invalid Description
InvalidIdentifier
An invalid identifier was returned
OperationNotSupported
Operation not supported
WriteError
Write to destination failed
Unknown(i32)
Unknown - catch all, return this instead of panicing
Implementations§
Trait Implementations§
source§impl Ord for KeyError
impl Ord for KeyError
source§impl PartialEq<KeyError> for KeyError
impl PartialEq<KeyError> for KeyError
source§impl PartialOrd<KeyError> for KeyError
impl PartialOrd<KeyError> for KeyError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more