pub struct IdleTrigger {
pub after_secs: u64,
pub message: String,
pub sends_to: Option<String>,
pub cooldown_secs: u64,
pub respect_quiet_hours: bool,
}Fields§
§after_secs: u64Idle threshold in seconds. Fires when (now - last_activity) >= after_secs.
message: StringMessage body injected into the task runner when this trigger fires.
sends_to: Option<String>Optional A2A peer to route the resulting reply to. None means the agent itself.
cooldown_secs: u64Per-trigger refire cooldown in seconds. Prevents tight loops when the idle threshold is short and the runner finishes quickly. Default 600.
respect_quiet_hours: boolWhen true, suppress firing during the agent’s quiet-hours window. Default true — idle pings should not wake the user at 3 a.m.
Trait Implementations§
Source§impl Clone for IdleTrigger
impl Clone for IdleTrigger
Source§fn clone(&self) -> IdleTrigger
fn clone(&self) -> IdleTrigger
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 moreSource§impl Debug for IdleTrigger
impl Debug for IdleTrigger
Source§impl<'de> Deserialize<'de> for IdleTrigger
impl<'de> Deserialize<'de> for IdleTrigger
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
Source§impl PartialEq for IdleTrigger
impl PartialEq for IdleTrigger
Source§fn eq(&self, other: &IdleTrigger) -> bool
fn eq(&self, other: &IdleTrigger) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IdleTrigger
impl Serialize for IdleTrigger
impl StructuralPartialEq for IdleTrigger
Auto Trait Implementations§
impl Freeze for IdleTrigger
impl RefUnwindSafe for IdleTrigger
impl Send for IdleTrigger
impl Sync for IdleTrigger
impl Unpin for IdleTrigger
impl UnsafeUnpin for IdleTrigger
impl UnwindSafe for IdleTrigger
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