pub struct ReadinessState {
pub config_loaded: bool,
pub listener_bound: bool,
pub cluster: ClusterReadiness,
}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.
cluster: ClusterReadinessConditional cluster startup state.
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 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
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 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() -> ReadinessState
fn default() -> ReadinessState
Returns the “default value” for a type. Read more
impl Eq for ReadinessState
Source§impl PartialEq for ReadinessState
impl PartialEq for ReadinessState
Source§fn eq(&self, other: &ReadinessState) -> bool
fn eq(&self, other: &ReadinessState) -> bool
Tests for
self and other values to be equal, and is used by ==.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
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.