Struct tether_utils::tether_record::RecordOptions
source · pub struct RecordOptions {
pub file_override_path: Option<String>,
pub file_base_path: String,
pub file_base_name: String,
pub file_no_timestamp: bool,
pub topic: String,
pub timing_nonzero_start: bool,
pub timing_delay: Option<f32>,
pub timing_duration: Option<f32>,
pub ignore_ctrl_c: bool,
}Fields§
§file_override_path: Option<String>Specify the full path for the recording file; overrides any other file args
file_base_path: StringBase path for recording file
file_base_name: StringBase name for recording file, excluding timestamp and .json extension
file_no_timestamp: boolFlag to disable appending timestamp onto recording file name
topic: StringTopic to subscribe; by default we recording everything
timing_nonzero_start: boolFlag to disable zero-ing of the first entry’s deltaTime; using this flag will count time from launch, not first message received
timing_delay: Option<f32>Time (in seconds) to delay writing anything to disk, even if messages are received
timing_duration: Option<f32>Duration (in seconds) to stop recording even if Ctrl+C has not been encountered yet
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 RecordOptions
impl Args for RecordOptions
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Clone for RecordOptions
impl Clone for RecordOptions
source§fn clone(&self) -> RecordOptions
fn clone(&self) -> RecordOptions
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 RecordOptions
impl Default for RecordOptions
source§impl FromArgMatches for RecordOptions
impl FromArgMatches for RecordOptions
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 RecordOptions
impl RefUnwindSafe for RecordOptions
impl Send for RecordOptions
impl Sync for RecordOptions
impl Unpin for RecordOptions
impl UnwindSafe for RecordOptions
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