pub struct ReadinessSnapshot {
pub storage: Check,
pub search: Check,
pub conditional_writes: Option<Check>,
}Expand description
The latest probe of every backend the poller covers.
Fields§
§storage: CheckThe object store: s3 or fs.
search: CheckThe vector store behind search and indexing.
conditional_writes: Option<Check>Whether every bucket enforces conditional writes, as found once at startup on
the s3 backend (D70). None on fs, which enforces them itself. Never
rewritten by the poller.
Implementations§
Source§impl ReadinessSnapshot
impl ReadinessSnapshot
Sourcepub fn ok(storage_backend: &'static str, search_backend: &'static str) -> Self
pub fn ok(storage_backend: &'static str, search_backend: &'static str) -> Self
Every check ok — what the poller publishes before its first probe, since startup provisioning has just reached both backends.
Sourcepub fn with_conditional_writes(self, check: Check) -> Self
pub fn with_conditional_writes(self, check: Check) -> Self
The same snapshot, carrying the startup finding on conditional writes.
Sourcepub fn is_ready(&self) -> bool
pub fn is_ready(&self) -> bool
Whether every check leaves the replica ready (see Check::is_ready).
Sourcepub fn is_degraded(&self) -> bool
pub fn is_degraded(&self) -> bool
Whether any check is degraded (see Check::is_degraded).
Trait Implementations§
Source§impl Clone for ReadinessSnapshot
impl Clone for ReadinessSnapshot
Source§impl Debug for ReadinessSnapshot
impl Debug for ReadinessSnapshot
impl Eq for ReadinessSnapshot
Source§impl PartialEq for ReadinessSnapshot
impl PartialEq for ReadinessSnapshot
impl StructuralPartialEq for ReadinessSnapshot
Auto Trait Implementations§
impl Freeze for ReadinessSnapshot
impl RefUnwindSafe for ReadinessSnapshot
impl Send for ReadinessSnapshot
impl Sync for ReadinessSnapshot
impl Unpin for ReadinessSnapshot
impl UnsafeUnpin for ReadinessSnapshot
impl UnwindSafe for ReadinessSnapshot
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.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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request