pub struct ToolArgs {
pub(crate) port: Option<String>,
pub(crate) ble: Option<Option<String>>,
pub(crate) pick: bool,
pub(crate) baud: u32,
pub(crate) trace: bool,
pub(crate) no_save: bool,
pub(crate) color: ColorChoice,
pub(crate) command: Option<Command>,
}Fields§
§port: Option<String>Serial port to attach to.
ble: Option<Option<String>>Attach over BLE, optionally naming the radio by name or scan id.
The selector needs the = form (--ble=T-Echo); bare --ble
discovers.
pick: boolChoose the radio from a numbered listing, ignoring the saved default.
The listing appears on its own whenever the answer is ambiguous; this asks for it even when it is not.
baud: u32Serial bit rate.
trace: boolPrint every ULCP frame on stderr.
no_save: boolLeave mutations live-only. They otherwise persist automatically via CMD_SAVE.
color: ColorChoiceWhen to colorize output.
command: Option<Command>Implementations§
Trait Implementations§
Source§impl Args for ToolArgs
impl Args for ToolArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for ToolArgs
impl CommandFactory for ToolArgs
Source§impl FromArgMatches for ToolArgs
impl FromArgMatches for ToolArgs
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.Source§impl Parser for ToolArgs
impl Parser for ToolArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for ToolArgs
impl RefUnwindSafe for ToolArgs
impl Send for ToolArgs
impl Sync for ToolArgs
impl Unpin for ToolArgs
impl UnwindSafe for ToolArgs
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more