pub struct ProbeConfig {
pub interval_secs: u64,
pub timeout_secs: u64,
pub failure_threshold: u32,
pub recovery_threshold: u32,
pub max_latency_ms: Option<u64>,
pub benchmark_interval_secs: u64,
pub auto_prune_after_hours: u64,
pub direct_check_url: Option<String>,
pub targets: Vec<ProbeTarget>,
}Fields§
§interval_secs: u64§timeout_secs: u64§failure_threshold: u32§recovery_threshold: u32§max_latency_ms: Option<u64>Optional latency ceiling in milliseconds; slower responses trigger failover.
benchmark_interval_secs: u64Periodic background re-benchmark interval in seconds (0 disables it).
auto_prune_after_hours: u64Remove profiles that stay continuously unhealthy for this many hours (0 disables it).
direct_check_url: Option<String>Optional direct (non-proxied) URL used to verify the host server’s own internet connectivity before auto-pruning dead profiles (e.g., a local/domestic site).
targets: Vec<ProbeTarget>Trait Implementations§
Source§impl Clone for ProbeConfig
impl Clone for ProbeConfig
Source§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 Forget for ProbeConfig
impl Freeze for ProbeConfig
impl Move for ProbeConfig
impl RefUnwindSafe for ProbeConfig
impl Send for ProbeConfigwhere
RawVecInner: Send,
impl Sync for ProbeConfigwhere
RawVecInner: Sync,
impl Unpin for ProbeConfig
impl UnsafeUnpin for ProbeConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ProbeTarget>: UnsafeUnpin,
impl UnwindSafe for ProbeConfigwhere
RawVecInner: UnwindSafe,
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