pub enum CipherError {
InvalidLength(InvalidLength),
InvalidCipherHeader(),
CipherTextIsTooShort(),
InvalidKey(UnpadError),
InvalidBase64Encoding(DecodeError),
InvalidUtf8Encoding(FromUtf8Error),
}Variants§
InvalidLength(InvalidLength)
InvalidCipherHeader()
CipherTextIsTooShort()
InvalidKey(UnpadError)
InvalidBase64Encoding(DecodeError)
InvalidUtf8Encoding(FromUtf8Error)
Trait Implementations§
Source§impl Debug for CipherError
impl Debug for CipherError
Source§impl Display for CipherError
impl Display for CipherError
Source§impl Error for CipherError
impl Error for CipherError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DecodeError> for CipherError
impl From<DecodeError> for CipherError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for CipherError
impl From<FromUtf8Error> for CipherError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<InvalidLength> for CipherError
impl From<InvalidLength> for CipherError
Source§fn from(source: InvalidLength) -> Self
fn from(source: InvalidLength) -> Self
Converts to this type from the input type.
Source§impl From<UnpadError> for CipherError
impl From<UnpadError> for CipherError
Source§fn from(source: UnpadError) -> Self
fn from(source: UnpadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CipherError
impl RefUnwindSafe for CipherError
impl Send for CipherError
impl Sync for CipherError
impl Unpin for CipherError
impl UnwindSafe for CipherError
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