Enum typed_session::Error
source · pub enum Error<SessionStoreConnectorError> {
UpdatedSessionDoesNotExist,
MaximumSessionIdGenerationTriesReached,
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.
SessionStoreConnector(SessionStoreConnectorError)
An error occurred in the session store connector.
Trait Implementations§
source§impl<SessionStoreConnectorError: Debug + Display> Error for Error<SessionStoreConnectorError>
impl<SessionStoreConnectorError: Debug + Display> Error for Error<SessionStoreConnectorError>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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> 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