pub enum SessionStatus {
Valid,
Degrading {
estimated_expiry: Option<SystemTime>,
hint: String,
},
Expired,
Blocked {
reason: String,
retry_after: Option<Duration>,
},
Unknown,
}Expand description
Session liveness state as reported by Site::validate.
Variants§
Valid
Session is healthy; continue using.
Degrading
Session still works but may expire soon — consider preemptive refresh.
Expired
Session is dead — need to refresh or re-login.
Blocked
Server is blocking us (captcha, rate limit, anti-bot). Don’t retry immediately.
Unknown
Validation itself failed (network error, etc.) — state is unknown.
Trait Implementations§
Source§impl Clone for SessionStatus
impl Clone for SessionStatus
Source§fn clone(&self) -> SessionStatus
fn clone(&self) -> SessionStatus
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 SessionStatus
impl RefUnwindSafe for SessionStatus
impl Send for SessionStatus
impl Sync for SessionStatus
impl Unpin for SessionStatus
impl UnsafeUnpin for SessionStatus
impl UnwindSafe for SessionStatus
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