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 PartialOrd for KeyError
impl PartialOrd for KeyError
impl Copy for KeyError
impl Eq for KeyError
impl StructuralPartialEq for KeyError
Auto Trait Implementations§
impl Freeze for KeyError
impl RefUnwindSafe for KeyError
impl Send for KeyError
impl Sync for KeyError
impl Unpin for KeyError
impl UnwindSafe for KeyError
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