pub struct WatchArgs {
pub watched_agent: Option<Agent>,
pub reviewer_harness: Option<ReviewerHarness>,
pub watched_model: Option<String>,
pub reviewer_model: Option<String>,
pub reviewer_effort: Option<Effort>,
pub allow_same_model: bool,
pub once: bool,
pub until_empty: bool,
pub grace: u64,
pub poll_secs: u64,
pub wait_for_lock: bool,
pub expect_lock_handoff: bool,
}Fields§
§watched_agent: Option<Agent>§reviewer_harness: Option<ReviewerHarness>§watched_model: Option<String>§reviewer_model: Option<String>§reviewer_effort: Option<Effort>§allow_same_model: bool§once: boolDrain the review queue exactly once and exit (deterministic; used in CI). Like every queue-draining mode this takes the single-flight watcher lock: with a live watcher holding the lock, –once fails loudly (never drains without lock ownership) unless –wait-for-lock is given.
until_empty: boolDrain until the queue stays empty through a full grace window, then exit 0. Ties the watcher’s lifetime to the queue instead of a manual daemon.
grace: u64Seconds to linger on an empty queue picking up late arrivals before exiting
under --until-empty. Ignored without --until-empty.
poll_secs: u64Poll interval in seconds when running as a daemon (ignored with –once).
wait_for_lock: boolWait for the single-flight watcher lock instead of exiting when another live watcher holds it. Without this flag a looping watch that cannot take the lock exits with an error and NEVER touches the queue.
expect_lock_handoff: boolInternal: this process is the detached watcher spawned by ensure-watcher, so it should absorb the lock handoff window (the parent re-points the lock at this process right after spawning it) before refusing a foreign-held lock. Set by the spawner, never by users.
Trait Implementations§
Source§impl Args for WatchArgs
impl Args for WatchArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for WatchArgs
impl FromArgMatches for WatchArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for WatchArgs
impl RefUnwindSafe for WatchArgs
impl Send for WatchArgs
impl Sync for WatchArgs
impl Unpin for WatchArgs
impl UnsafeUnpin for WatchArgs
impl UnwindSafe for WatchArgs
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> 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