pub enum Commands {
Proxy(ProxyCli),
Monitor {
tio: TioOpts,
all: bool,
fps: u32,
colors: Option<String>,
},
Health(HealthCli),
NmeaProxy {
tio: TioOpts,
tcp_port: u16,
},
Rpc {
tio: TioOpts,
subcommands: Option<RPCSubcommands>,
rpc_name: Option<String>,
rpc_arg: Option<String>,
req_type: Option<String>,
rep_type: Option<String>,
debug: bool,
},
Log {
tio: TioOpts,
subcommands: Option<LogSubcommands>,
file: String,
unbuffered: bool,
raw: bool,
depth: Option<usize>,
},
MetaReroute {
input: String,
route: String,
output: Option<String>,
},
Dump {
tio: TioOpts,
subcommands: Option<DumpSubcommands>,
data: bool,
meta: bool,
depth: Option<usize>,
},
FirmwareUpgrade {
tio: TioOpts,
firmware_path: String,
},
}Variants§
Proxy(ProxyCli)
Monitor
Live sensor data and plot display
Health(HealthCli)
NmeaProxy
Bridge Twinleaf sensor data to NMEA TCP stream
Rpc
Execute an RPC on the device. See “tio rpc –help” for more options
Fields
§
subcommands: Option<RPCSubcommands>§
req_type: Option<String>RPC request type (one of: u8, u16, u32, u64, i8, i16, i32, i64, f32, f64, string)
Log
Log samples to a file (includes metadata by default) See “tio log –help” for more options
Fields
§
subcommands: Option<LogSubcommands>MetaReroute
Reroute metadata packets in a metadata file
Fields
Dump
Dump data from a live device
Fields
§
subcommands: Option<DumpSubcommands>FirmwareUpgrade
Upgrade device firmware
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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
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>
Converts
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>
Converts
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