pub struct ToolArgs {
pub(crate) port: Option<String>,
pub(crate) ble: Option<Option<String>>,
pub(crate) tcp: Option<String>,
pub(crate) pick: bool,
pub(crate) baud: u32,
pub(crate) trace: bool,
pub(crate) no_save: bool,
pub(crate) node: Option<KeyArg>,
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.
tcp: Option<String>Attach to a radio served over TCP, as HOST:PORT.
The socket carries the same framing a serial port does, so anything bridging one to a listening socket serves a radio this way:
socat TCP-LISTEN:9000,reuseaddr /dev/cu.usbmodem101,raw,echo=0,b115200
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.
node: Option<KeyArg>Reach a device across the mesh, using the attached radio to get there.
The command-line form of the shell’s remote: attach a radio as
usual, then borrow it to open a session to KEY. With a command,
that command runs over the mesh and the radio is handed back;
with no command, the shell opens already talking to KEY. The
device must list this tool’s administrator key (admin-key
prints it).
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
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>
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.