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<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request