pub struct DebugCliArgs {Show 14 fields
pub enabled: bool,
pub render_once: bool,
pub state_in: Option<PathBuf>,
pub actions_in: Option<PathBuf>,
pub actions_out: Option<PathBuf>,
pub actions_include: Option<String>,
pub actions_exclude: Option<String>,
pub actions_include_categories: Option<String>,
pub actions_exclude_categories: Option<String>,
pub actions_include_names: Option<String>,
pub actions_exclude_names: Option<String>,
pub state_schema_out: Option<PathBuf>,
pub actions_schema_out: Option<PathBuf>,
pub replay_timeout: u64,
}Expand description
Shared CLI flags for debug tooling.
Fields§
§enabled: boolEnable debug mode (F12 to toggle overlay)
render_once: boolRender a single frame and exit (after applying debug state/actions)
state_in: Option<PathBuf>Load initial state from a JSON snapshot
actions_in: Option<PathBuf>Load and replay actions from a JSON snapshot
actions_out: Option<PathBuf>Save dispatched actions to a JSON snapshot
actions_include: Option<String>Include action patterns when recording debug actions (comma-separated)
actions_exclude: Option<String>Exclude action patterns when recording debug actions (comma-separated)
actions_include_categories: Option<String>Include action categories when recording debug actions (comma-separated)
actions_exclude_categories: Option<String>Exclude action categories when recording debug actions (comma-separated)
actions_include_names: Option<String>Include exact action names when recording debug actions (comma-separated)
actions_exclude_names: Option<String>Exclude exact action names when recording debug actions (comma-separated)
state_schema_out: Option<PathBuf>Save JSON schema for state type to file
actions_schema_out: Option<PathBuf>Save JSON schema for action type to file
replay_timeout: u64Timeout in seconds for awaiting async actions during replay
Implementations§
Source§impl DebugCliArgs
impl DebugCliArgs
pub fn action_filter(&self) -> ActionLoggerConfig
pub fn auto_fetch(&self) -> bool
Trait Implementations§
Source§impl Args for DebugCliArgs
impl Args for DebugCliArgs
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 Clone for DebugCliArgs
impl Clone for DebugCliArgs
Source§fn clone(&self) -> DebugCliArgs
fn clone(&self) -> DebugCliArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DebugCliArgs
impl Debug for DebugCliArgs
Source§impl Default for DebugCliArgs
impl Default for DebugCliArgs
Source§fn default() -> DebugCliArgs
fn default() -> DebugCliArgs
Source§impl FromArgMatches for DebugCliArgs
impl FromArgMatches for DebugCliArgs
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 DebugCliArgs
impl RefUnwindSafe for DebugCliArgs
impl Send for DebugCliArgs
impl Sync for DebugCliArgs
impl Unpin for DebugCliArgs
impl UnsafeUnpin for DebugCliArgs
impl UnwindSafe for DebugCliArgs
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
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