Enum securestore::ErrorKind
source · [−]#[non_exhaustive]
pub enum ErrorKind {
InvalidKeyfile,
DecryptionFailure,
DeserializationError,
SecretNotFound,
UnsupportedVaultVersion,
IoError,
InvalidStore,
}
Expand description
A strongly-typed enumeration of errors one can expect to encounter in using the SecureStore API.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
InvalidKeyfile
The key did not meet the requirements for a valid keyfile.
DecryptionFailure
May be caused by using the wrong key or attempting to load ciphertext that has been tampered with.
DeserializationError
The BinaryDeserializable
type converter
failed to deserialize the decrypted payload.
SecretNotFound
The requested secret was not found in the store.
UnsupportedVaultVersion
The vault was created with a version that is not supported by this library.
IoError
An IO error occurred reading/writing from/to the store.
InvalidStore
An error occurred during the (de)serialization of the secure store. This typically implies either an incorrect file was loaded as the secrets store, the file has been corrupted/truncated, or was produced by a buggy or incompatible SecureStore implementation.
Trait Implementations
impl Copy for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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