Enum actix_identity::error::GetIdentityError
source · #[non_exhaustive]pub enum GetIdentityError {
SessionExpiryError(SessionExpiryError),
MissingIdentityError(MissingIdentityError),
SessionGetError(SessionGetError),
LostIdentityError(LostIdentityError),
}
Expand description
Errors that can occur while retrieving an identity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SessionExpiryError(SessionExpiryError)
The session has expired.
MissingIdentityError(MissingIdentityError)
No identity is found in a session.
SessionGetError(SessionGetError)
Failed to accessing the session store.
LostIdentityError(LostIdentityError)
Identity info was lost after being validated.
Seeing this error indicates a bug in actix-identity.
Trait Implementations§
source§impl Debug for GetIdentityError
impl Debug for GetIdentityError
source§impl Display for GetIdentityError
impl Display for GetIdentityError
source§impl Error for GetIdentityError
impl Error for GetIdentityError
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()
source§impl From<LostIdentityError> for GetIdentityError
impl From<LostIdentityError> for GetIdentityError
source§fn from(original: LostIdentityError) -> GetIdentityError
fn from(original: LostIdentityError) -> GetIdentityError
Converts to this type from the input type.
source§impl From<MissingIdentityError> for GetIdentityError
impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
fn from(original: MissingIdentityError) -> GetIdentityError
Converts to this type from the input type.
source§impl From<SessionExpiryError> for GetIdentityError
impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
fn from(original: SessionExpiryError) -> GetIdentityError
Converts to this type from the input type.
source§impl From<SessionGetError> for GetIdentityError
impl From<SessionGetError> for GetIdentityError
source§fn from(original: SessionGetError) -> GetIdentityError
fn from(original: SessionGetError) -> GetIdentityError
Converts to this type from the input type.
source§impl ResponseError for GetIdentityError
impl ResponseError for GetIdentityError
source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GetIdentityError
impl Send for GetIdentityError
impl Sync for GetIdentityError
impl Unpin for GetIdentityError
impl UnwindSafe for GetIdentityError
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