Enum actix_web_security::authentication::error::error_type::AuthenticationError [−][src]
pub enum AuthenticationError { AuthorizationHeaderNotSet, InvalidAuthorizationHeader, InvalidAuthentication, InvalidToken, UsernameNotFound, }
Authentication related errors.
Variants
No Authorization
header is set.
The value in the Authorization
header is invalid.
The type of authorization (Basic/Bearer/etc.) cannot be handled by the current authentication provider or header extractor.
The authentication data/token cannot be decoded successfully or is not valid anymore.
A user to be authenticated cannot be found or cannot be retrieved from the request context/extensions.
Trait Implementations
impl Clone for AuthenticationError
[src]
impl Clone for AuthenticationError
[src]fn clone(&self) -> AuthenticationError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Display for AuthenticationError
[src]
impl Display for AuthenticationError
[src]impl Eq for AuthenticationError
[src]
impl Eq for AuthenticationError
[src]impl Error for AuthenticationError
[src]
impl Error for AuthenticationError
[src]impl Hash for AuthenticationError
[src]
impl Hash for AuthenticationError
[src]impl ResponseError for AuthenticationError
[src]
impl ResponseError for AuthenticationError
[src]fn status_code(&self) -> StatusCode
[src]
fn error_response(&self) -> HttpResponse
[src]
impl StructuralEq for AuthenticationError
[src]
impl StructuralEq for AuthenticationError
[src]Auto Trait Implementations
impl RefUnwindSafe for AuthenticationError
impl RefUnwindSafe for AuthenticationError
impl Send for AuthenticationError
impl Send for AuthenticationError
impl Sync for AuthenticationError
impl Sync for AuthenticationError
impl Unpin for AuthenticationError
impl Unpin for AuthenticationError
impl UnwindSafe for AuthenticationError
impl UnwindSafe for AuthenticationError
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,