pub struct NotifyConfig {
pub on_error: bool,
pub on_idle_ms: Option<u64>,
}Expand description
Runtime configuration for live-mode desktop notifications. Kept
here rather than in notify.rs because the field shape is a TUI
concern — notify.rs owns only the “fire a notification” wrapper,
not the policy for when to fire. Both fields are no-ops on a
feature-off build (the notify::error / notify::idle calls
return Ok(()) without touching anything), so leaving this struct
outside any cfg keeps the event loop readable.
Fields§
§on_error: boolFire a notification when a newly arrived tool_result matches
is_error_result.
on_idle_ms: Option<u64>Fire a notification when the session hasn’t grown for at least
this many milliseconds. None disables. Fires at most once per
idle interval — growth resets the trigger.
Trait Implementations§
Source§impl Clone for NotifyConfig
impl Clone for NotifyConfig
Source§fn clone(&self) -> NotifyConfig
fn clone(&self) -> NotifyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NotifyConfig
Source§impl Debug for NotifyConfig
impl Debug for NotifyConfig
Source§impl Default for NotifyConfig
impl Default for NotifyConfig
Source§fn default() -> NotifyConfig
fn default() -> NotifyConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NotifyConfig
impl RefUnwindSafe for NotifyConfig
impl Send for NotifyConfig
impl Sync for NotifyConfig
impl Unpin for NotifyConfig
impl UnsafeUnpin for NotifyConfig
impl UnwindSafe for NotifyConfig
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> 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