pub struct ReadinessState {
pub config_loaded: bool,
pub listener_bound: bool,
pub cluster: ClusterReadiness,
pub admission_available: bool,
}Expand description
Startup state evaluated by the readiness probe.
Fields§
§config_loaded: boolWhether configuration has loaded, environment overrides applied, and validation completed successfully.
listener_bound: boolWhether the main wire protocol listener is bound and accepting traffic.
A bound listener is not a serving one: a socket can be accepted and then
refused at the admission door, which is the P0 #56 failure. See
Self::admission_available.
cluster: ClusterReadinessConditional cluster startup state.
admission_available: boolWhether the server can admit a connection at all (P0 #56).
Distinct from Self::listener_bound because the field defect sat
exactly between the two: ports listening, accepts succeeding, and every
connection refused a moment later by a latched incarnation authority.
Implementations§
Source§impl ReadinessState
impl ReadinessState
Sourcepub const fn new(
config_loaded: bool,
listener_bound: bool,
cluster: ClusterReadiness,
) -> Self
pub const fn new( config_loaded: bool, listener_bound: bool, cluster: ClusterReadiness, ) -> Self
Creates a startup readiness snapshot.
Sourcepub const fn with_admission(
config_loaded: bool,
listener_bound: bool,
cluster: ClusterReadiness,
admission_available: bool,
) -> Self
pub const fn with_admission( config_loaded: bool, listener_bound: bool, cluster: ClusterReadiness, admission_available: bool, ) -> Self
Creates a startup readiness snapshot including the admission gate.
Sourcepub const fn ready_without_cluster() -> Self
pub const fn ready_without_cluster() -> Self
Creates a fully ready snapshot for a non-clustered server.
Sourcepub const fn ready_with_cluster() -> Self
pub const fn ready_with_cluster() -> Self
Creates a fully ready snapshot for a clustered server.
Trait Implementations§
Source§impl Clone for ReadinessState
impl Clone for ReadinessState
Source§fn clone(&self) -> ReadinessState
fn clone(&self) -> ReadinessState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ReadinessState
Source§impl Debug for ReadinessState
impl Debug for ReadinessState
Source§impl Default for ReadinessState
impl Default for ReadinessState
Source§fn default() -> Self
fn default() -> Self
The pre-startup snapshot: nothing loaded, nothing bound, and admission ASSUMED AVAILABLE.
Not a derive, because bool::default() is false and that would be a
different claim: it would report a brand-new server as unable to admit
connections, which is not something anything has observed yet. The
admission gate is the one condition here that reports a RUNTIME fact
rather than a startup step, so its honest default is “no evidence
against”, matching what SharedReadinessState::snapshot reports before
an admission source is installed.
impl Eq for ReadinessState
Source§impl PartialEq for ReadinessState
impl PartialEq for ReadinessState
impl StructuralPartialEq for ReadinessState
Auto Trait Implementations§
impl Freeze for ReadinessState
impl RefUnwindSafe for ReadinessState
impl Send for ReadinessState
impl Sync for ReadinessState
impl Unpin for ReadinessState
impl UnsafeUnpin for ReadinessState
impl UnwindSafe for ReadinessState
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
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
key and return true if they are equal.