Struct tether_utils::tether_playback::PlaybackOptions
source · pub struct PlaybackOptions {
pub file_path: String,
pub override_topic: Option<String>,
pub loop_count: usize,
pub loop_infinite: bool,
pub ignore_ctrl_c: bool,
}Fields§
§file_path: StringSpecify the full path to the JSON file containing recorded messages
override_topic: Option<String>Overide any original topics saved in the file, to use with every published message
loop_count: usizeHow many times to loop playback
loop_infinite: boolFlag to enable infinite looping for playback (ignore loops.count if enabled)
ignore_ctrl_c: boolFlag to disable registration of Ctrl+C handler - this is usually necessary when using the utility programmatically (i.e. not via CLI)
Trait Implementations§
source§impl Args for PlaybackOptions
impl Args for PlaybackOptions
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§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
source§impl Clone for PlaybackOptions
impl Clone for PlaybackOptions
source§fn clone(&self) -> PlaybackOptions
fn clone(&self) -> PlaybackOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for PlaybackOptions
impl Default for PlaybackOptions
source§impl FromArgMatches for PlaybackOptions
impl FromArgMatches for PlaybackOptions
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 RefUnwindSafe for PlaybackOptions
impl Send for PlaybackOptions
impl Sync for PlaybackOptions
impl Unpin for PlaybackOptions
impl UnwindSafe for PlaybackOptions
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