pub enum KeySetupState {
NotStarted,
InProgress,
Success,
PartialSuccess,
FailedSafe,
NeedsRollback,
RolledBack,
}Expand description
Result of the key setup process.
Variants§
NotStarted
Setup not yet started.
InProgress
Setup is in progress.
Success
Setup completed successfully (password auth disabled).
PartialSuccess
Setup partially succeeded (key works, but no sudo to disable password).
FailedSafe
Setup failed safely (password auth NOT disabled).
NeedsRollback
Setup failed after disabling password — needs rollback.
RolledBack
Rollback completed.
Trait Implementations§
Source§impl Clone for KeySetupState
impl Clone for KeySetupState
Source§fn clone(&self) -> KeySetupState
fn clone(&self) -> KeySetupState
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 moreSource§impl Debug for KeySetupState
impl Debug for KeySetupState
impl Eq for KeySetupState
Source§impl PartialEq for KeySetupState
impl PartialEq for KeySetupState
impl StructuralPartialEq for KeySetupState
Auto Trait Implementations§
impl Freeze for KeySetupState
impl RefUnwindSafe for KeySetupState
impl Send for KeySetupState
impl Sync for KeySetupState
impl Unpin for KeySetupState
impl UnsafeUnpin for KeySetupState
impl UnwindSafe for KeySetupState
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,
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.