pub struct IdleTimeoutSetting {
pub timeout: Duration,
pub resolution: IdleTimeoutResolution,
}Expand description
A resolved idle timeout together with how it was arrived at.
Fields§
§timeout: DurationThe window that must elapse with NO line on the child’s stdout.
resolution: IdleTimeoutResolutionHow that value was reached — observable to the caller as a VALUE, not only as a log line, so a test can assert on it directly.
Implementations§
Source§impl IdleTimeoutSetting
impl IdleTimeoutSetting
Sourcepub fn notice(&self) -> Option<String>
pub fn notice(&self) -> Option<String>
The loud, operator-facing notice this resolution owes, if any.
None for the two unremarkable cases. Some exactly when a value the
operator supplied is NOT the value in force — the case that must never
pass silently.
Sourcepub fn notice_for(&self, env: &str) -> Option<String>
pub fn notice_for(&self, env: &str) -> Option<String>
Self::notice named for the SPECIFIC environment variable that
produced this resolution.
The per-agent idle policy (D-08, round 3) resolves different variables
per agent; the notice must name the knob the operator actually set, or
a clamped/typo’d DEVFLOW_ANTIGRAVITY_IDLE_TIMEOUT_SECS would be
reported as if DEVFLOW_CLAUDE_IDLE_TIMEOUT_SECS were the culprit.
Trait Implementations§
Source§impl Clone for IdleTimeoutSetting
impl Clone for IdleTimeoutSetting
Source§fn clone(&self) -> IdleTimeoutSetting
fn clone(&self) -> IdleTimeoutSetting
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IdleTimeoutSetting
impl Debug for IdleTimeoutSetting
impl Eq for IdleTimeoutSetting
Source§impl PartialEq for IdleTimeoutSetting
impl PartialEq for IdleTimeoutSetting
impl StructuralPartialEq for IdleTimeoutSetting
Auto Trait Implementations§
impl Freeze for IdleTimeoutSetting
impl RefUnwindSafe for IdleTimeoutSetting
impl Send for IdleTimeoutSetting
impl Sync for IdleTimeoutSetting
impl Unpin for IdleTimeoutSetting
impl UnsafeUnpin for IdleTimeoutSetting
impl UnwindSafe for IdleTimeoutSetting
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.