pub struct ThreadCleanupArgs {
pub merged: bool,
pub auto: bool,
pub older_than: Option<String>,
pub dry_run: bool,
}Expand description
Arguments for heddle thread cleanup.
At least one of --merged or --auto must be set; otherwise the
command refuses with a clear message. --older-than is required
when --auto is set.
Fields§
§merged: boolClean up threads whose recorded state is merged.
auto: boolDrop harness-auto-created threads (those tagged auto: true).
Combine with --older-than to gate the sweep on staleness.
older_than: Option<String>Maximum age (since updated_at) for an auto-thread to be
considered live. Threads older than this are eligible for
sweep when --auto is set. Accepts a Go-style duration like
7d, 24h, 30m, 15s (or a raw integer interpreted as
seconds).
dry_run: boolPrint what would be dropped without actually dropping it.
Trait Implementations§
Source§impl Args for ThreadCleanupArgs
impl Args for ThreadCleanupArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ThreadCleanupArgs
impl Clone for ThreadCleanupArgs
Source§fn clone(&self) -> ThreadCleanupArgs
fn clone(&self) -> ThreadCleanupArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadCleanupArgs
impl Debug for ThreadCleanupArgs
Source§impl FromArgMatches for ThreadCleanupArgs
impl FromArgMatches for ThreadCleanupArgs
Source§fn from_arg_matches(
__clap_arg_matches: &ArgMatches,
) -> Result<ThreadCleanupArgs, Error>
fn from_arg_matches( __clap_arg_matches: &ArgMatches, ) -> Result<ThreadCleanupArgs, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<ThreadCleanupArgs, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<ThreadCleanupArgs, 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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ThreadCleanupArgs
impl RefUnwindSafe for ThreadCleanupArgs
impl Send for ThreadCleanupArgs
impl Sync for ThreadCleanupArgs
impl Unpin for ThreadCleanupArgs
impl UnsafeUnpin for ThreadCleanupArgs
impl UnwindSafe for ThreadCleanupArgs
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request