pub struct SendErrorTrackerConfig {
pub enabled: bool,
pub consecutive_threshold: u32,
pub window_ms: u64,
pub rate_threshold: f64,
pub min_events_for_rate: u64,
}Expand description
SendErrorTracker configuration.
Fields§
§enabled: boolWhether the error tracker is enabled.
consecutive_threshold: u32Consecutive error threshold for tunnel restart. When consecutive errors reach this count, the tracker signals a restart. Default: 5 (matches knxd behavior).
window_ms: u64Sliding window duration in milliseconds. Errors older than this are pruned from the window. Default: 60000 (60 seconds).
rate_threshold: f64Error rate threshold within the sliding window (0.0 - 1.0). When the error rate exceeds this within the window, a warning is triggered. Default: 0.5 (50% error rate).
min_events_for_rate: u64Minimum number of events in the window before rate threshold applies. Prevents false positives when only a few events have occurred. Default: 10.
Implementations§
Trait Implementations§
Source§impl Clone for SendErrorTrackerConfig
impl Clone for SendErrorTrackerConfig
Source§fn clone(&self) -> SendErrorTrackerConfig
fn clone(&self) -> SendErrorTrackerConfig
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 SendErrorTrackerConfig
impl Debug for SendErrorTrackerConfig
Source§impl Default for SendErrorTrackerConfig
impl Default for SendErrorTrackerConfig
Source§impl<'de> Deserialize<'de> for SendErrorTrackerConfig
impl<'de> Deserialize<'de> for SendErrorTrackerConfig
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 SendErrorTrackerConfig
impl RefUnwindSafe for SendErrorTrackerConfig
impl Send for SendErrorTrackerConfig
impl Sync for SendErrorTrackerConfig
impl Unpin for SendErrorTrackerConfig
impl UnsafeUnpin for SendErrorTrackerConfig
impl UnwindSafe for SendErrorTrackerConfig
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