pub struct WatchArgs {
pub since: Option<String>,
pub filter: Option<String>,
pub max_iterations: Option<usize>,
pub poll_interval_ms: Option<u64>,
}Expand description
Arguments for the watch command.
Streams live oplog activity (snapshots, merges, thread create/update,
markers, etc.) as it happens. Default behavior tails forever and exits
on Ctrl-C. --since 5m replays the last N before tailing live;
--filter restricts output to the named kinds; --output json emits one
JSON object per line for piping to jq.
Fields§
§since: Option<String>Replay events from this duration ago (e.g. 30s, 5m, 1h,
2d) before tailing live. When unset, only new events are
emitted.
filter: Option<String>Comma-separated event kinds to include
(snapshot,merge,thread_create,thread_update,thread_delete, collapse,thread_marker_create,thread_marker_delete).
max_iterations: Option<usize>Internal helper for tests: stop after the oplog file produces this many modify events (still drains pending entries first).
poll_interval_ms: Option<u64>Internal helper for tests: poll interval in milliseconds for
the notify watcher’s debounce check (default 200ms).
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<WatchArgs, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<WatchArgs, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<WatchArgs, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<WatchArgs, 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.