pub enum AuthenticationError {
Show 18 variants
Failure(String),
UnrecognizedMethods {
message: String,
unknown_methods: Vec<String>,
},
IncorrectSocketType(String),
OpenAuthRejected(String),
PasswordAuthRejected(String),
IncorrectPassword(String),
MissingPassword(String),
CookieAuthRejected(CookieFailure),
IncorrectCookieValue(CookieFailure),
IncorrectCookieSize(CookieFailure),
UnreadableCookieFile(CookieFailure),
AuthChallengeFailed(CookieFailure),
AuthChallengeUnsupported(CookieFailure),
UnrecognizedAuthChallengeMethod(CookieFailure),
AuthSecurityFailure(CookieFailure),
InvalidClientNonce(CookieFailure),
NoAuthMethods(String),
NoAuthCookie {
message: String,
is_safecookie: bool,
},
}Variants§
Failure(String)
UnrecognizedMethods
IncorrectSocketType(String)
OpenAuthRejected(String)
PasswordAuthRejected(String)
IncorrectPassword(String)
MissingPassword(String)
CookieAuthRejected(CookieFailure)
IncorrectCookieValue(CookieFailure)
IncorrectCookieSize(CookieFailure)
UnreadableCookieFile(CookieFailure)
AuthChallengeFailed(CookieFailure)
AuthChallengeUnsupported(CookieFailure)
UnrecognizedAuthChallengeMethod(CookieFailure)
AuthSecurityFailure(CookieFailure)
InvalidClientNonce(CookieFailure)
NoAuthMethods(String)
NoAuthCookie
Trait Implementations§
Source§impl Clone for AuthenticationError
impl Clone for AuthenticationError
Source§impl Debug for AuthenticationError
impl Debug for AuthenticationError
Source§impl Display for AuthenticationError
impl Display for AuthenticationError
impl Eq for AuthenticationError
Source§impl Error for AuthenticationError
impl Error for AuthenticationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<AuthenticationError> for Error
impl From<AuthenticationError> for Error
Source§fn from(source: AuthenticationError) -> Self
fn from(source: AuthenticationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AuthenticationError
impl PartialEq for AuthenticationError
impl StructuralPartialEq for AuthenticationError
Auto Trait Implementations§
impl Freeze for AuthenticationError
impl RefUnwindSafe for AuthenticationError
impl Send for AuthenticationError
impl Sync for AuthenticationError
impl Unpin for AuthenticationError
impl UnsafeUnpin for AuthenticationError
impl UnwindSafe for AuthenticationError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere T: Clone,
impl<T> CloneToUninit for Twhere T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.