Skip to main content

Commands

Enum Commands 

Source
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

Fields

§all: bool
§fps: u32
§colors: Option<String>
§

Health(HealthCli)

§

NmeaProxy

Bridge Twinleaf sensor data to NMEA TCP stream

Fields

§tcp_port: u16
§

Rpc

Execute an RPC on the device. See “tio rpc –help” for more options

Fields

§subcommands: Option<RPCSubcommands>
§rpc_name: Option<String>

RPC name to execute

§rpc_arg: Option<String>

RPC argument value

§req_type: Option<String>

RPC request type (one of: u8, u16, u32, u64, i8, i16, i32, i64, f32, f64, string)

§rep_type: Option<String>

RPC reply type (one of: u8, u16, u32, u64, i8, i16, i32, i64, f32, f64, string)

§debug: bool

Enable debug output

§

Log

Log samples to a file (includes metadata by default) See “tio log –help” for more options

Fields

§subcommands: Option<LogSubcommands>
§file: String

Output log file path

§unbuffered: bool

Unbuffered output (flush every packet)

§raw: bool

Raw mode: skip metadata request and dump all packets

§depth: Option<usize>

Routing depth (only used in –raw mode)

§

MetaReroute

Reroute metadata packets in a metadata file

Fields

§input: String

Input metadata file path

§route: String

New device route (e.g., /0/1)

§output: Option<String>

Output metadata file path (defaults to _rerouted.tio)

§

Dump

Dump data from a live device

Fields

§data: bool

Show parsed data samples

§meta: bool

Show metadata on boundaries

§depth: Option<usize>

Routing depth limit (default: unlimited)

§

FirmwareUpgrade

Upgrade device firmware

Fields

§firmware_path: String

Input firmware image path

Trait Implementations§

Source§

impl Debug for Commands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.