pub enum Error<SessionStoreConnectorError> {
UpdatedSessionDoesNotExist,
MaximumSessionIdGenerationTriesReached {
maximum: u32,
},
WrongCookieLength {
expected: usize,
actual: usize,
},
SessionStoreConnector(SessionStoreConnectorError),
}
Expand description
All errors that can occur in this crate.
Variants§
UpdatedSessionDoesNotExist
A session was attempted to be updated, but the session does not exist. This may happen due to concurrent modification, and is forbidden to prevent data inconsistencies. If you receive this error, revert everything that you did while handling the request that used this session.
MaximumSessionIdGenerationTriesReached
Tried as often as desired to generate a session id, but all generated ids already exist.
WrongCookieLength
The given cookie has a wrong length.
SessionStoreConnector(SessionStoreConnectorError)
An error occurred in the session store connector.
Trait Implementations§
Source§impl<SessionStoreConnectorError> Display for Error<SessionStoreConnectorError>where
SessionStoreConnectorError: Display,
impl<SessionStoreConnectorError> Display for Error<SessionStoreConnectorError>where
SessionStoreConnectorError: Display,
Source§impl<SessionStoreConnectorError> Error for Error<SessionStoreConnectorError>
impl<SessionStoreConnectorError> Error for Error<SessionStoreConnectorError>
1.30.0 · 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()
Auto Trait Implementations§
impl<SessionStoreConnectorError> Freeze for Error<SessionStoreConnectorError>where
SessionStoreConnectorError: Freeze,
impl<SessionStoreConnectorError> RefUnwindSafe for Error<SessionStoreConnectorError>where
SessionStoreConnectorError: RefUnwindSafe,
impl<SessionStoreConnectorError> Send for Error<SessionStoreConnectorError>where
SessionStoreConnectorError: Send,
impl<SessionStoreConnectorError> Sync for Error<SessionStoreConnectorError>where
SessionStoreConnectorError: Sync,
impl<SessionStoreConnectorError> Unpin for Error<SessionStoreConnectorError>where
SessionStoreConnectorError: Unpin,
impl<SessionStoreConnectorError> UnwindSafe for Error<SessionStoreConnectorError>where
SessionStoreConnectorError: UnwindSafe,
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