pub enum VerificationState {
Verified {
next_due: Timestamp,
},
Due,
Snoozed {
until: Timestamp,
snoozes_used: u8,
},
Badge,
RewrapDue,
}Expand description
The state the client UX renders. This is the entire consumer contract of the scheduler — pure data, never a localized string, and never a gate.
Variants§
Verified
The secret was last verified and the next prompt is scheduled for next_due.
Nothing to show now.
Fields
next_due: TimestampWhen the next verification prompt becomes due.
Due
A verification prompt is due now.
Snoozed
The user snoozed; the prompt is suppressed until until. snoozes_used of the
MAX_CONSECUTIVE_SNOOZES budget have been consumed.
Fields
until: TimestampWhen the snooze expires and the prompt becomes due again.
Badge
The snooze budget is exhausted: a persistent, non-blocking badge remains until the user verifies. Not a lock — advisory only.
RewrapDue
Repeated failures (≥ REWRAP_FAILURE_THRESHOLD across ≥ REWRAP_MIN_SESSIONS
app sessions) or an explicit “I lost it”: the client should run the guided
re-wrap flow (crate::recovery::RecoveryClient::guided_rewrap).
Implementations§
Source§impl VerificationState
impl VerificationState
Sourcepub const fn blocks_critical_flow(self) -> bool
pub const fn blocks_critical_flow(self) -> bool
Trait Implementations§
Source§impl Clone for VerificationState
impl Clone for VerificationState
Source§fn clone(&self) -> VerificationState
fn clone(&self) -> VerificationState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for VerificationState
Source§impl Debug for VerificationState
impl Debug for VerificationState
Source§impl<'de> Deserialize<'de> for VerificationState
impl<'de> Deserialize<'de> for VerificationState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for VerificationState
Source§impl PartialEq for VerificationState
impl PartialEq for VerificationState
Source§fn eq(&self, other: &VerificationState) -> bool
fn eq(&self, other: &VerificationState) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for VerificationState
impl Serialize for VerificationState
impl StructuralPartialEq for VerificationState
Auto Trait Implementations§
impl Freeze for VerificationState
impl RefUnwindSafe for VerificationState
impl Send for VerificationState
impl Sync for VerificationState
impl Unpin for VerificationState
impl UnsafeUnpin for VerificationState
impl UnwindSafe for VerificationState
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
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<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more