Enum actix_identity::error::GetIdentityError
source · #[non_exhaustive]pub enum GetIdentityError {
SessionExpiryError(SessionExpiryError),
MissingIdentityError(MissingIdentityError),
- SessionGetError(SessionGetError),
+ 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.
+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 Freeze for GetIdentityError
impl RefUnwindSafe for GetIdentityError
impl Send for GetIdentityError
impl Sync for GetIdentityError
impl Unpin for GetIdentityError
impl UnwindSafe for GetIdentityError
Blanket Implementations§
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 Freeze for GetIdentityError
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
source§impl<T> From<T> for T
impl<T> From<T> for T
source§fn from(t: T) -> T
fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/actix_identity/error/struct.LoginError.html b/actix_identity/error/struct.LoginError.html index 5105b8af9..6fb859dc2 100644 --- a/actix_identity/error/struct.LoginError.html +++ b/actix_identity/error/struct.LoginError.html @@ -1,5 +1,5 @@Struct actix_identity::error::LoginError
source · pub struct LoginError(/* private fields */);
Expand description
Error that can occur during login attempts.
-Trait Implementations§
source§impl Debug for LoginError
impl Debug for LoginError
source§impl Display for LoginError
impl Display for LoginError
source§impl Error for LoginError
impl Error for LoginError
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<SessionInsertError> for LoginError
impl From<SessionInsertError> for LoginError
source§fn from(original: SessionInsertError) -> LoginError
fn from(original: SessionInsertError) -> LoginError
Converts to this type from the input type.
source§impl ResponseError for LoginError
impl ResponseError for LoginError
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 Freeze for LoginError
impl RefUnwindSafe for LoginError
impl Send for LoginError
impl Sync for LoginError
impl Unpin for LoginError
impl UnwindSafe for LoginError
Blanket Implementations§
Trait Implementations§
source§impl Debug for LoginError
impl Debug for LoginError
source§impl Display for LoginError
impl Display for LoginError
source§impl Error for LoginError
impl Error for LoginError
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<SessionInsertError> for LoginError
impl From<SessionInsertError> for LoginError
source§fn from(original: SessionInsertError) -> LoginError
fn from(original: SessionInsertError) -> LoginError
Converts to this type from the input type.
source§impl ResponseError for LoginError
impl ResponseError for LoginError
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 Freeze for LoginError
impl RefUnwindSafe for LoginError
impl Send for LoginError
impl Sync for LoginError
impl Unpin for LoginError
impl UnwindSafe for LoginError
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
source§impl<T> From<T> for T
impl<T> From<T> for T
source§fn from(t: T) -> T
fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/help.html b/help.html index 88cb3fc7c..dceac9fd7 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -