pub struct HeartbeatOpts {
pub heartbeat: Option<f64>,
pub heartbeat_emit: Option<String>,
pub heartbeat_to: PulseTo,
}Expand description
The shared --heartbeat option group, #[command(flatten)]-ed into every
leaf tool’s CLI so the flags are named and documented identically.
Fields§
§heartbeat: Option<f64>Print a liveness pulse every SECS seconds (fractional allowed) while the run is in progress.
heartbeat_emit: Option<String>Heartbeat line template. Tokens: {ELAPSED} (whole seconds so far), {TOOL}, plus per-tool tokens. Default: “[{ELAPSED}s]”.
heartbeat_to: PulseToStream heartbeat pulses are written to.
Implementations§
Source§impl HeartbeatOpts
impl HeartbeatOpts
Trait Implementations§
Source§impl Args for HeartbeatOpts
impl Args for HeartbeatOpts
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 Debug for HeartbeatOpts
impl Debug for HeartbeatOpts
Source§impl FromArgMatches for HeartbeatOpts
impl FromArgMatches for HeartbeatOpts
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>
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 HeartbeatOpts
impl RefUnwindSafe for HeartbeatOpts
impl Send for HeartbeatOpts
impl Sync for HeartbeatOpts
impl Unpin for HeartbeatOpts
impl UnsafeUnpin for HeartbeatOpts
impl UnwindSafe for HeartbeatOpts
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