pub enum ParseCookieError {
CookieDecodingError(DecodeError),
CookieFormatError(usize),
ResultEncodingError(FromUtf8Error),
AesError(Error),
}
Expand description
Errors that can happen when decrypting your cookies
Variants§
CookieDecodingError(DecodeError)
Base 64 parsing error
Occurs when an invalid character is present in your cookie.
CookieFormatError(usize)
Cookie format error
Occurs if you supply a cookie which cannot be split in three properly.
ResultEncodingError(FromUtf8Error)
UTF-8 decoding error
Occurs if your decoded data is not a proper UTF-8 string.
AesError(Error)
Decryption error
If you reach this, I have no idea what to say.
Trait Implementations§
Source§impl Clone for ParseCookieError
impl Clone for ParseCookieError
Source§fn clone(&self) -> ParseCookieError
fn clone(&self) -> ParseCookieError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseCookieError
impl Debug for ParseCookieError
Source§impl Display for ParseCookieError
impl Display for ParseCookieError
Source§impl PartialEq for ParseCookieError
impl PartialEq for ParseCookieError
impl StructuralPartialEq for ParseCookieError
Auto Trait Implementations§
impl Freeze for ParseCookieError
impl RefUnwindSafe for ParseCookieError
impl Send for ParseCookieError
impl Sync for ParseCookieError
impl Unpin for ParseCookieError
impl UnwindSafe for ParseCookieError
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