pub struct ReadinessStatus {
pub ready: bool,
pub unmet_conditions: Vec<ReadinessCondition>,
}Expand description
Result of the server readiness probe.
Fields§
§ready: boolTrue only when all applicable startup gates are satisfied.
unmet_conditions: Vec<ReadinessCondition>Startup gates that are not yet satisfied, in stable evaluation order.
Implementations§
Source§impl ReadinessStatus
impl ReadinessStatus
Sourcepub fn from_unmet_conditions(unmet_conditions: Vec<ReadinessCondition>) -> Self
pub fn from_unmet_conditions(unmet_conditions: Vec<ReadinessCondition>) -> Self
Creates a readiness status from unmet startup gates.
Trait Implementations§
Source§impl Clone for ReadinessStatus
impl Clone for ReadinessStatus
Source§fn clone(&self) -> ReadinessStatus
fn clone(&self) -> ReadinessStatus
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 moreSource§impl Debug for ReadinessStatus
impl Debug for ReadinessStatus
impl Eq for ReadinessStatus
Source§impl PartialEq for ReadinessStatus
impl PartialEq for ReadinessStatus
Source§fn eq(&self, other: &ReadinessStatus) -> bool
fn eq(&self, other: &ReadinessStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReadinessStatus
impl Serialize for ReadinessStatus
impl StructuralPartialEq for ReadinessStatus
Auto Trait Implementations§
impl Freeze for ReadinessStatus
impl RefUnwindSafe for ReadinessStatus
impl Send for ReadinessStatus
impl Sync for ReadinessStatus
impl Unpin for ReadinessStatus
impl UnsafeUnpin for ReadinessStatus
impl UnwindSafe for ReadinessStatus
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.