pub struct NotifyPolicyConfig {
pub min_duration_ms: u64,
pub global_cooldown_ms: u64,
pub merge_window_ms: u64,
pub per_thread_cooldown_ms: u64,
pub recent_search_window_ms: u64,
pub recent_endpoint_timeout_ms: u64,
}Fields§
§min_duration_ms: u64Only notify when proxy duration_ms is >= this threshold.
global_cooldown_ms: u64At most one notification per global_cooldown_ms.
merge_window_ms: u64Events within this window will be merged into one notification.
per_thread_cooldown_ms: u64Suppress notifications for the same thread-id within this cooldown.
recent_search_window_ms: u64How far back to look in proxy recent-finished list when matching a thread-id.
recent_endpoint_timeout_ms: u64Timeout for calling proxy status/recent endpoint.
Trait Implementations§
Source§impl Clone for NotifyPolicyConfig
impl Clone for NotifyPolicyConfig
Source§fn clone(&self) -> NotifyPolicyConfig
fn clone(&self) -> NotifyPolicyConfig
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 NotifyPolicyConfig
impl Debug for NotifyPolicyConfig
Source§impl Default for NotifyPolicyConfig
impl Default for NotifyPolicyConfig
Source§impl<'de> Deserialize<'de> for NotifyPolicyConfig
impl<'de> Deserialize<'de> for NotifyPolicyConfig
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 NotifyPolicyConfig
impl RefUnwindSafe for NotifyPolicyConfig
impl Send for NotifyPolicyConfig
impl Sync for NotifyPolicyConfig
impl Unpin for NotifyPolicyConfig
impl UnwindSafe for NotifyPolicyConfig
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