pub struct ComponentReadiness {
pub component: String,
pub state: ReadinessState,
pub problem: Option<String>,
pub blocked: Option<String>,
pub recovery: Option<String>,
}Expand description
One row of the readiness matrix, as the endpoint reports it.
Fields§
§component: StringThe matrix’s own name for the component.
state: ReadinessState§problem: Option<String>What is wrong, named rather than implied. None when healthy.
blocked: Option<String>What this state rejects, in the words of the matrix’s third column.
recovery: Option<String>The condition being waited on, so an operator knows whether to act.
Implementations§
Source§impl ComponentReadiness
impl ComponentReadiness
pub fn healthy(component: &str) -> Self
pub fn new( component: &str, state: ReadinessState, problem: &str, blocked: &str, recovery: &str, ) -> Self
Sourcepub fn fatal(&self) -> bool
pub fn fatal(&self) -> bool
Whether this component’s state takes the whole gear out of service.
Not simply “is it unhealthy”: the matrix is explicit that an embedding-space mismatch leaves the gear ready and blocks only the vector arms, while an unreachable database admits no traffic at all. The aggregate therefore asks the component, not the state.
Trait Implementations§
Source§impl Clone for ComponentReadiness
impl Clone for ComponentReadiness
Source§impl Debug for ComponentReadiness
impl Debug for ComponentReadiness
impl Eq for ComponentReadiness
Source§impl PartialEq for ComponentReadiness
impl PartialEq for ComponentReadiness
impl StructuralPartialEq for ComponentReadiness
Auto Trait Implementations§
impl Freeze for ComponentReadiness
impl RefUnwindSafe for ComponentReadiness
impl Send for ComponentReadiness
impl Sync for ComponentReadiness
impl Unpin for ComponentReadiness
impl UnsafeUnpin for ComponentReadiness
impl UnwindSafe for ComponentReadiness
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.