pub struct BackendHealthProbe {
pub backend: String,
pub interval_secs: u64,
pub unhealthy_threshold: u32,
pub healthy_threshold: u32,
pub timeout_ms: u64,
pub enabled: bool,
pub consecutive_ok: u32,
pub consecutive_fail: u32,
}Expand description
Configuration for automated health probing of a backend.
Fields§
§backend: StringBackend name this probe targets.
interval_secs: u64Probe interval in seconds (0 = disabled).
unhealthy_threshold: u32Number of consecutive failures before marking unhealthy.
healthy_threshold: u32Number of consecutive successes before marking healthy.
timeout_ms: u64Timeout for each probe attempt in ms.
enabled: boolWhether probing is active.
consecutive_ok: u32Consecutive check successes (for healthy transition).
consecutive_fail: u32Consecutive check failures (for unhealthy transition).
Trait Implementations§
Source§impl Clone for BackendHealthProbe
impl Clone for BackendHealthProbe
Source§fn clone(&self) -> BackendHealthProbe
fn clone(&self) -> BackendHealthProbe
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 BackendHealthProbe
impl Debug for BackendHealthProbe
Source§impl Default for BackendHealthProbe
impl Default for BackendHealthProbe
Source§impl<'de> Deserialize<'de> for BackendHealthProbe
impl<'de> Deserialize<'de> for BackendHealthProbe
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BackendHealthProbe
impl RefUnwindSafe for BackendHealthProbe
impl Send for BackendHealthProbe
impl Sync for BackendHealthProbe
impl Unpin for BackendHealthProbe
impl UnsafeUnpin for BackendHealthProbe
impl UnwindSafe for BackendHealthProbe
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreCreates a shared type from an unshared type.