Enum display_tweak::TweakCommand
source · pub(crate) enum TweakCommand {
Backlight(BacklightCmd),
Panel(PanelCmd),
}
Variants§
Backlight(BacklightCmd)
Panel(PanelCmd)
Trait Implementations§
source§impl Debug for TweakCommand
impl Debug for TweakCommand
source§impl FromArgs for TweakCommand
impl FromArgs for TweakCommand
source§fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
source§fn redact_arg_values(
command_name: &[&str],
args: &[&str]
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( command_name: &[&str], args: &[&str] ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
source§impl PartialEq<TweakCommand> for TweakCommand
impl PartialEq<TweakCommand> for TweakCommand
source§fn eq(&self, other: &TweakCommand) -> bool
fn eq(&self, other: &TweakCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SubCommands for TweakCommand
impl SubCommands for TweakCommand
§fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.