Enum linux_keyutils::KeyError
source · [−]pub enum KeyError {
Show 14 variants
AccessDenied,
QuotaExceeded,
BadAddress,
InvalidArguments,
KeyExpired,
KeyRevoked,
KeyRejected,
KeyringDoesNotExist,
KeyDoesNotExist,
OutOfMemory,
InvalidDescription,
InvalidIdentifier,
OperationNotSupported,
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
Unknown(i32)
Unknown - catch all, return this instead of panicing
Implementations
sourceimpl KeyError
impl KeyError
sourcepub fn from_errno() -> KeyError
pub fn from_errno() -> KeyError
Obtain the KeyError derived from checking errno
Trait Implementations
sourceimpl Ord for KeyError
impl Ord for KeyError
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<KeyError> for KeyError
impl PartialOrd<KeyError> for KeyError
sourcefn partial_cmp(&self, other: &KeyError) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyError) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Copy for KeyError
impl Eq for KeyError
impl StructuralEq for KeyError
impl StructuralPartialEq for KeyError
Auto Trait Implementations
impl RefUnwindSafe for KeyError
impl Send for KeyError
impl Sync for KeyError
impl Unpin for KeyError
impl UnwindSafe for KeyError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more