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<ComponentRange> for GetIdentityError
impl From<ComponentRange> for GetIdentityError
source§impl From<LostIdentityError> for GetIdentityError
impl From<LostIdentityError> for GetIdentityError
source§fn from(error: LostIdentityError) -> Self
fn from(error: LostIdentityError) -> Self
Converts to this type from the input type.
source§impl From<MissingIdentityError> for GetIdentityError
impl From<MissingIdentityError> for GetIdentityError
source§fn from(error: MissingIdentityError) -> Self
fn from(error: MissingIdentityError) -> Self
Converts to this type from the input type.
source§impl From<SessionGetError> for GetIdentityError
impl From<SessionGetError> for GetIdentityError
source§fn from(source: SessionGetError) -> Self
fn from(source: SessionGetError) -> Self
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<BoxBody>
fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read more