pub enum VaultState {
Unprovisioned,
Locked(Box<SealedVault>),
Degraded(String),
}Expand description
The provisioning state of a machine, derived from the on-disk vault.
Variants§
Unprovisioned
No vault present — Kintsugi is unlocked (default install). Privileged ops are unauthenticated (today’s behavior).
Locked(Box<SealedVault>)
A valid sealed vault exists — privileged ops require the admin password.
Degraded(String)
A vault exists but could not be read/parsed. Stays locked (refuse privileged ops) — never silently drops to Unprovisioned, so corrupting or hiding the vault is not a bypass. The string is a non-sensitive reason.
Implementations§
Trait Implementations§
Source§impl Clone for VaultState
impl Clone for VaultState
Source§fn clone(&self) -> VaultState
fn clone(&self) -> VaultState
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 VaultState
impl Debug for VaultState
impl Eq for VaultState
Source§impl PartialEq for VaultState
impl PartialEq for VaultState
Source§fn eq(&self, other: &VaultState) -> bool
fn eq(&self, other: &VaultState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VaultState
Auto Trait Implementations§
impl Freeze for VaultState
impl RefUnwindSafe for VaultState
impl Send for VaultState
impl Sync for VaultState
impl Unpin for VaultState
impl UnsafeUnpin for VaultState
impl UnwindSafe for VaultState
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
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,
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.