Enum redact_crypto::CryptoError [−][src]
pub enum CryptoError {
FsIoError {
source: Error,
},
FileNotFound {
path: String,
},
CiphertextFailedVerification,
InvalidKeyLength {
expected: usize,
actual: usize,
},
StorageError {
source: StorageError,
},
NotDowncastable,
FilePathHasNoFileStem {
path: String,
},
FilePathIsInvalidUTF8,
NotDeserializableToBaseDataType,
Base64Decode {
source: DecodeError,
},
WrongNonceType,
}Expand description
Error that wraps all possible errors out of the redact-crypto crate
Variants
Error occurred while performing IO on the filesystem
Show 1 field
Fields of FsIoError
source: ErrorFile path given was not found
Show 1 field
Fields of FileNotFound
path: StringCiphertext failed veri fication before decryption
Provided bytes are not the right length for the
Wraps a StorageError
Show 1 field
Fields of StorageError
source: StorageErrorGiven value was not of the right type to be downcasted to the requested type
File path given has an invalid file name with no stem
Show 1 field
Fields of FilePathHasNoFileStem
path: StringFile path given was invalid UTF-8
Given bytes could not be serialized to a base data type
Error happened when decoding base64 string
Show 1 field
Fields of Base64Decode
source: DecodeErrorWrong nonce was provided during seal/unseal operation
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CryptoErrorimpl Send for CryptoErrorimpl Sync for CryptoErrorimpl Unpin for CryptoErrorimpl !UnwindSafe for CryptoError