pub struct RunArgs {Show 13 fields
pub manifest_path: 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<LogLevel>,
pub working_dir: Option<PathBuf>,
pub runtime_dir: Option<PathBuf>,
pub timeout: Option<Duration>,
pub grace: Option<Duration>,
pub json: bool,
pub color: bool,
}Expand description
astrs run’s arguments, already parsed and resolved.
Fields§
§manifest_path: PathBufThe manifest to run.
deterministic: boolDrive the timer wheel from Self::from_recording’s HLC stream
instead of the wall clock (§14). Refused with
CliError::DeterministicNeedsRecording when
Self::from_recording is unset.
from_recording: Option<PathBuf>The .arec recording Self::deterministic replays as its clock
source. Every node the recording covers is rewritten to path: dynamic (stood down, never spawned) and fed from the recording
instead — see stand_down_recorded_producers.
speed: Option<f64>Paces Self::deterministic’s wall-clock walk through the
recording; None replays as fast as the loop can. Never changes
which messages are delivered or their stamps — only how long the
run takes.
exit_when_nodes_finish: boolOverride the manifest’s exit_when_nodes_finish:.
skip_build: boolSkip the build: lines.
level: Option<LogLevel>Hide streamed output below this level.
working_dir: Option<PathBuf>Where node paths resolve against; the manifest’s directory by default.
runtime_dir: Option<PathBuf>Where the embedded daemon’s socket lives.
timeout: Option<Duration>A ceiling on the whole run.
grace: Option<Duration>How long a stopping node has before SIGTERM.
json: boolEmit the result as JSON instead of a human summary.
color: boolColorize the streamed lines.
Implementations§
Trait Implementations§
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> 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> 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