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 fields
Fields of FsIoError
source: ErrorFile path given was not found
Show fields
Fields of FileNotFound
path: StringCiphertext failed veri fication before decryption
Provided bytes are not the right length for the
Wraps a StorageError
Show fields
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 fields
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 fields
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 CryptoErrorBlanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeIdTODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V