pub enum SessionError {
SessionError,
Storage(String),
Crypto(String),
Cookie(String),
PageSessionToken(String),
CsrfToken(String),
SessionExpiredError,
SessionConflictRejected,
Validation(String),
Utils(UtilError),
HeaderError(String),
User(UserError),
}Expand description
Errors that can occur during session management operations.
This enum represents all possible error conditions when handling session creation, validation, and management.
Variants§
SessionError
Generic session-related error
Storage(String)
Error accessing or modifying stored session data
Crypto(String)
Error in cryptographic operations used for session security
Cookie(String)
Error related to cookie handling (setting, parsing)
PageSessionToken(String)
Error with page session tokens used for sensitive operations
CsrfToken(String)
Error with CSRF token validation or generation
SessionExpiredError
Error when a session has expired (timeout or explicit invalidation)
SessionConflictRejected
Error when login is rejected due to session conflict policy
Validation(String)
Error when input validation fails for session-related data
Utils(UtilError)
Error from utility operations
HeaderError(String)
Error processing HTTP headers related to sessions
User(UserError)
Error from user database operations
Trait Implementations§
Source§impl Clone for SessionError
impl Clone for SessionError
Source§fn clone(&self) -> SessionError
fn clone(&self) -> SessionError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionError
impl Debug for SessionError
Source§impl Display for SessionError
impl Display for SessionError
Source§impl Error for SessionError
impl Error for SessionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<SessionError> for CoordinationError
impl From<SessionError> for CoordinationError
Source§fn from(err: SessionError) -> Self
fn from(err: SessionError) -> Self
Auto Trait Implementations§
impl Freeze for SessionError
impl RefUnwindSafe for SessionError
impl Send for SessionError
impl Sync for SessionError
impl Unpin for SessionError
impl UnsafeUnpin for SessionError
impl UnwindSafe for SessionError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more