pub struct RunArgs {
pub manifest: PathBuf,
pub deterministic: bool,
pub from_recording: Option<PathBuf>,
pub speed: Option<f64>,
pub exit_when_nodes_finish: bool,
pub skip_build: bool,
pub level: Option<String>,
pub working_dir: Option<PathBuf>,
pub runtime_dir: Option<PathBuf>,
pub timeout: Option<f64>,
pub grace: Option<f64>,
}Expand description
astrs run arguments.
Fields§
§manifest: PathBufThe manifest to run.
deterministic: boolDrive the timer wheel from a recorded HLC stream instead of the
wall clock, for byte-identical replay (blueprint §14). Needs
--from-recording; refused with
crate::error::CliError::DeterministicNeedsRecording without it.
from_recording: Option<PathBuf>The .arec recording --deterministic replays as its clock source.
Every node the recording produced for is stood down (path: dynamic) and fed from it instead of spawned.
speed: Option<f64>Paces --deterministic’s wall-clock walk through the recording:
1.0 reproduces the original spacing, 2.0 halves it. Omit to
replay as fast as the loop can — pacing never changes which
messages are delivered or their stamps, only how long the run takes.
exit_when_nodes_finish: boolExit once every node with a finite input set has finished, whatever
the manifest’s own exit_when_nodes_finish: says.
skip_build: boolSkip the manifest’s build: lines and go straight to spawning.
level: Option<String>Hide streamed node output below this level
(trace|debug|info|warn|error).
working_dir: Option<PathBuf>The directory node paths, build: lines and relative env: values
resolve against; defaults to the manifest’s own directory.
runtime_dir: Option<PathBuf>Where the embedded daemon puts its socket and captured logs;
defaults to $ASTRS_RUNTIME_DIR/$XDG_RUNTIME_DIR/astrs.
timeout: Option<f64>Stop the whole graph after this many seconds, however it is doing.
grace: Option<f64>How long a stopping node has to finish before SIGTERM (§12).
Trait Implementations§
Source§impl Args for RunArgs
impl Args for RunArgs
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 RunArgs
impl FromArgMatches for RunArgs
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 RunArgs
impl RefUnwindSafe for RunArgs
impl Send for RunArgs
impl Sync for RunArgs
impl Unpin for RunArgs
impl UnsafeUnpin for RunArgs
impl UnwindSafe for RunArgs
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> 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