pub enum EncryptedValueBase64DecodeError {
DecodeError(DecodeSliceError),
IncorrectNonceLength(usize),
}
Expand description
An error representing a failure to decode and encrypted value from base64
back into a Vec<u8>
.
Variants§
DecodeError(DecodeSliceError)
Base64 decoding failed because the string was not valid base64
IncorrectNonceLength(usize)
Decoding the nonce failed because it was not the expected length
Trait Implementations§
Source§impl From<DecodeError> for EncryptedValueBase64DecodeError
impl From<DecodeError> for EncryptedValueBase64DecodeError
Source§fn from(value: DecodeError) -> Self
fn from(value: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeSliceError> for EncryptedValueBase64DecodeError
impl From<DecodeSliceError> for EncryptedValueBase64DecodeError
Source§fn from(value: DecodeSliceError) -> Self
fn from(value: DecodeSliceError) -> Self
Converts to this type from the input type.
Source§impl From<EncryptedValueBase64DecodeError> for Error
impl From<EncryptedValueBase64DecodeError> for Error
Source§fn from(value: EncryptedValueBase64DecodeError) -> Self
fn from(value: EncryptedValueBase64DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncryptedValueBase64DecodeError
impl RefUnwindSafe for EncryptedValueBase64DecodeError
impl Send for EncryptedValueBase64DecodeError
impl Sync for EncryptedValueBase64DecodeError
impl Unpin for EncryptedValueBase64DecodeError
impl UnwindSafe for EncryptedValueBase64DecodeError
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