pub struct WatcherConfig {
pub republish_working_ttl_seconds: Option<u64>,
}Expand description
Configuration for the broker filesystem watcher.
The watcher publishes agent.status: working from git-status changes.
Bug 8 (auto-approve-scope-v0-6-x) adds a post-commit re-entry: after an
agent.artifact status: "committed" event, a subsequent file modification
observed within Self::republish_working_ttl_seconds re-publishes
working so the dashboard reflects the agent’s continued activity.
Fields§
§republish_working_ttl_seconds: Option<u64>TTL (seconds) after a committed event during which a file write
re-publishes working.
None resolves to Self::DEFAULT_REPUBLISH_TTL_SECONDS (60) via
Self::republish_working_ttl_seconds. A value of 0 disables the
auto-republish entirely (restoring the v0.5.0 “committed is terminal
until explicit republish” model). Non-zero values below
Self::MIN_REPUBLISH_TTL_SECONDS (5) are clamped to that floor with
a stderr warning.
Implementations§
Source§impl WatcherConfig
impl WatcherConfig
Sourcepub const DEFAULT_REPUBLISH_TTL_SECONDS: u64 = 60
pub const DEFAULT_REPUBLISH_TTL_SECONDS: u64 = 60
Default post-commit re-entry TTL in seconds.
Sourcepub const MIN_REPUBLISH_TTL_SECONDS: u64 = 5
pub const MIN_REPUBLISH_TTL_SECONDS: u64 = 5
Minimum non-zero TTL; smaller positive values clamp up to this floor.
Sourcepub fn republish_working_ttl_seconds(&self) -> u64
pub fn republish_working_ttl_seconds(&self) -> u64
Returns the effective post-commit re-entry TTL in seconds.
None→Self::DEFAULT_REPUBLISH_TTL_SECONDS.Some(0)→0(auto-republish disabled).Some(n)with0 < n < 5→ clamped toSelf::MIN_REPUBLISH_TTL_SECONDSwith a stderr warning.Some(n)withn >= 5→n.
Trait Implementations§
Source§impl Clone for WatcherConfig
impl Clone for WatcherConfig
Source§fn clone(&self) -> WatcherConfig
fn clone(&self) -> WatcherConfig
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 WatcherConfig
impl Debug for WatcherConfig
Source§impl Default for WatcherConfig
impl Default for WatcherConfig
Source§fn default() -> WatcherConfig
fn default() -> WatcherConfig
Source§impl<'de> Deserialize<'de> for WatcherConfig
impl<'de> Deserialize<'de> for WatcherConfig
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>,
impl Eq for WatcherConfig
Source§impl PartialEq for WatcherConfig
impl PartialEq for WatcherConfig
Source§fn eq(&self, other: &WatcherConfig) -> bool
fn eq(&self, other: &WatcherConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for WatcherConfig
impl Serialize for WatcherConfig
impl StructuralPartialEq for WatcherConfig
Auto Trait Implementations§
impl Freeze for WatcherConfig
impl RefUnwindSafe for WatcherConfig
impl Send for WatcherConfig
impl Sync for WatcherConfig
impl Unpin for WatcherConfig
impl UnsafeUnpin for WatcherConfig
impl UnwindSafe for WatcherConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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>
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>
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