pub struct ProbeConfig {
pub path: String,
pub port: Option<u16>,
pub interval_secs: u64,
pub timeout_secs: u64,
pub failure_threshold: u32,
pub initial_delay_secs: u64,
}Expand description
Probe configuration for readiness/liveness checks.
Fields§
§path: StringHTTP path to probe (e.g., “/healthz”).
port: Option<u16>Port to probe (defaults to service port).
interval_secs: u64Seconds between probes (default: 10).
timeout_secs: u64Seconds to wait for response (default: 3).
failure_threshold: u32Failures before action (default: 3).
initial_delay_secs: u64Seconds to wait before first probe (default: 5).
Trait Implementations§
Source§impl Clone for ProbeConfig
impl Clone for ProbeConfig
Source§fn clone(&self) -> ProbeConfig
fn clone(&self) -> ProbeConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ProbeConfig
impl Debug for ProbeConfig
Source§impl<'de> Deserialize<'de> for ProbeConfig
impl<'de> Deserialize<'de> for ProbeConfig
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 ProbeConfig
impl RefUnwindSafe for ProbeConfig
impl Send for ProbeConfig
impl Sync for ProbeConfig
impl Unpin for ProbeConfig
impl UnsafeUnpin for ProbeConfig
impl UnwindSafe for ProbeConfig
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