pub struct ReplayArgs {
pub input: PathBuf,
pub dataflow: Option<String>,
pub into: Option<String>,
pub speed: Option<f64>,
pub mode: ReplayTimingMode,
pub rate: Option<f64>,
pub loop: bool,
pub replace: Vec<String>,
pub drain: bool,
pub connect: ConnectArgs,
}Expand description
astrs replay arguments.
Two forms, and exactly one of them must be chosen (blueprint §14):
astrs replay s.arec --into graph.yml offline: print the rewritten manifest
astrs replay s.arec perception live: cut the running graph overFields§
§input: PathBufThe .arec file to replay.
dataflow: Option<String>A running dataflow to cut over, by id or by name.
Each chosen node is replaced in place by an astrs-replay-node
reading the recording, keeping its id and therefore its edges — the
live twin of --into’s manifest rewrite.
into: Option<String>The manifest file to rewrite, replacing chosen source nodes with
astrs-replay-node instances in place.
The offline form: the rewritten manifest is printed and nothing is started. Mutually exclusive with the positional dataflow.
speed: Option<f64>The replay speed multiplier (1.0 is real-time), passed through
to --mode real-time’s --speed.
mode: ReplayTimingModeThe timing mode the generated replay node paces entries with.
rate: Option<f64>The fixed emission rate, in Hz, for --mode fixed-rate.
loop: boolRestart each generated replay node from the beginning once its recording is exhausted.
replace: Vec<String>Replace only these node ids (repeatable); every node the recording covers, if none are given.
drain: boolLet each replaced node drain its inputs before it is stopped.
The live form only: the offline form starts nothing, so there is nothing to drain.
connect: ConnectArgsHow to reach the coordinator — the live form only.
Trait Implementations§
Source§impl Args for ReplayArgs
impl Args for ReplayArgs
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 Debug for ReplayArgs
impl Debug for ReplayArgs
Source§impl FromArgMatches for ReplayArgs
impl FromArgMatches for ReplayArgs
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 ReplayArgs
impl RefUnwindSafe for ReplayArgs
impl Send for ReplayArgs
impl Sync for ReplayArgs
impl Unpin for ReplayArgs
impl UnsafeUnpin for ReplayArgs
impl UnwindSafe for ReplayArgs
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