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§fn default() -> NotifyPolicyConfig
fn default() -> NotifyPolicyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotifyPolicyConfig
impl<'de> Deserialize<'de> for NotifyPolicyConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotifyPolicyConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotifyPolicyConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NotifyPolicyConfig
impl Serialize for NotifyPolicyConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more