pub enum CloudFactsState {
Off,
Inert,
BundledOnly,
Verified {
channel: String,
facts_version: u64,
key_id: String,
fetched_at: u64,
origin: FactsOrigin,
stale: bool,
patches: usize,
defaults: usize,
announcements: usize,
},
Rejected {
reason: String,
at: u64,
},
NotApplicable {
applies_to: String,
},
Failed {
last_error: String,
at: u64,
keeping: Option<u64>,
},
}Expand description
The state of the cloud facts layer.
Variants§
Off
Feature flag off (default). Bundled facts only.
Inert
Enabled but no active trusted key is pinned; nothing is fetched.
BundledOnly
Enabled; no verified payload yet (first launch, or every fetch failed).
Verified
A verified payload is merged over bundled facts.
Fields
§
origin: FactsOriginRejected
The last payload was rejected; bundled facts remain in use.
NotApplicable
Verified but not for this binary version.
Failed
Fetch failed; prior verified facts (if any) stay in use.
Implementations§
Trait Implementations§
Source§impl Clone for CloudFactsState
impl Clone for CloudFactsState
Source§impl Debug for CloudFactsState
impl Debug for CloudFactsState
Source§impl Default for CloudFactsState
impl Default for CloudFactsState
Source§impl<'de> Deserialize<'de> for CloudFactsState
impl<'de> Deserialize<'de> for CloudFactsState
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 CloudFactsState
Source§impl PartialEq for CloudFactsState
impl PartialEq for CloudFactsState
Source§impl Serialize for CloudFactsState
impl Serialize for CloudFactsState
impl StructuralPartialEq for CloudFactsState
Auto Trait Implementations§
impl Forget for CloudFactsState
impl Freeze for CloudFactsState
impl Move for CloudFactsState
impl RefUnwindSafe for CloudFactsState
impl Send for CloudFactsState
impl Sync for CloudFactsState
impl Unpin for CloudFactsState
impl UnsafeUnpin for CloudFactsState
impl UnwindSafe for CloudFactsState
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.