pub enum StepStatus {
NotStarted,
Recommended,
Optional,
Deferred,
InProgress,
Verified,
NeedsAction,
Failed,
Skipped,
}Expand description
Status of a single setup step. Shared vocabulary so /setup, doctor, and
the context report never invent their own meanings.
Variants§
NotStarted
Never visited.
Recommended
Suggested for a good first-run experience but not required.
Optional
Available but entirely optional.
Deferred
Intentionally postponed; surfaces in the report, does not block.
InProgress
Currently being worked on.
Verified
Completed and checked (e.g. key validated, mode confirmed).
NeedsAction
Reached a usable-but-incomplete state needing user action (e.g. a key that failed validation). Does not block the ready screen.
Failed
Attempted and errored.
Skipped
Explicitly skipped by the user.
Implementations§
Source§impl StepStatus
impl StepStatus
Sourcepub fn is_settled(self) -> bool
pub fn is_settled(self) -> bool
True for statuses that count as “the user dealt with this step” for the purpose of reaching the ready screen.
Trait Implementations§
Source§impl Clone for StepStatus
impl Clone for StepStatus
Source§fn clone(&self) -> StepStatus
fn clone(&self) -> StepStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StepStatus
Source§impl Debug for StepStatus
impl Debug for StepStatus
Source§impl<'de> Deserialize<'de> for StepStatus
impl<'de> Deserialize<'de> for StepStatus
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StepStatus
Source§impl PartialEq for StepStatus
impl PartialEq for StepStatus
Source§impl Serialize for StepStatus
impl Serialize for StepStatus
impl StructuralPartialEq for StepStatus
Auto Trait Implementations§
impl Freeze for StepStatus
impl RefUnwindSafe for StepStatus
impl Send for StepStatus
impl Sync for StepStatus
impl Unpin for StepStatus
impl UnsafeUnpin for StepStatus
impl UnwindSafe for StepStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.