pub struct ReadinessReport {
pub split: ReadinessSplit,
pub remote_ready: bool,
pub blocker: DecisiveBlocker,
pub incident_chain: Vec<IncidentChainEntry>,
pub detail: String,
}Expand description
The readiness report rch diagnose --json surfaces.
Fields§
§split: ReadinessSplit§remote_ready: boolTrue iff there is no decisive blocker. By construction this is impossible
when command_admissible_workers == 0.
blocker: DecisiveBlocker§incident_chain: Vec<IncidentChainEntry>The replayed recent incident chain, oldest-first.
detail: StringImplementations§
Source§impl ReadinessReport
impl ReadinessReport
Sourcepub fn invariant_holds(&self) -> bool
pub fn invariant_holds(&self) -> bool
The invariant guard: remote_ready implies at least one admissible
worker. Always true for a report from assess_readiness; exposed so
callers/tests can assert it.
Trait Implementations§
Source§impl Clone for ReadinessReport
impl Clone for ReadinessReport
Source§impl Debug for ReadinessReport
impl Debug for ReadinessReport
Source§impl<'de> Deserialize<'de> for ReadinessReport
impl<'de> Deserialize<'de> for ReadinessReport
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 ReadinessReport
Source§impl PartialEq for ReadinessReport
impl PartialEq for ReadinessReport
Source§impl Serialize for ReadinessReport
impl Serialize for ReadinessReport
impl StructuralPartialEq for ReadinessReport
Auto Trait Implementations§
impl Freeze for ReadinessReport
impl RefUnwindSafe for ReadinessReport
impl Send for ReadinessReport
impl Sync for ReadinessReport
impl Unpin for ReadinessReport
impl UnsafeUnpin for ReadinessReport
impl UnwindSafe for ReadinessReport
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.