pub enum AuthFailureKind {
CookieExpired,
CredentialsRejected,
RateLimited {
retry_after: Duration,
},
AntibotBlock {
challenge_type: String,
},
AccountSuspended,
Other(String),
}Expand description
Why a site operation failed authentication.
Variants§
CookieExpired
Cookie expired — refresh should help.
CredentialsRejected
Credentials (password / token) were rejected by the server.
RateLimited
Rate limited — caller should wait and retry.
AntibotBlock
Anti-bot challenge (captcha, fingerprint check, etc.).
AccountSuspended
Account suspended / banned.
Other(String)
Other — free-form string.
Trait Implementations§
Source§impl Clone for AuthFailureKind
impl Clone for AuthFailureKind
Source§fn clone(&self) -> AuthFailureKind
fn clone(&self) -> AuthFailureKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthFailureKind
impl RefUnwindSafe for AuthFailureKind
impl Send for AuthFailureKind
impl Sync for AuthFailureKind
impl Unpin for AuthFailureKind
impl UnsafeUnpin for AuthFailureKind
impl UnwindSafe for AuthFailureKind
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