Struct ebyte_e32_ui::cli::App
source · pub struct App {
pub mode: Mode,
pub address: u16,
pub channel: u8,
pub persistence: Persistence,
pub uart_parity: Parity,
pub uart_rate: BaudRate,
pub air_rate: AirBaudRate,
pub transmission_mode: TransmissionMode,
pub io_drive_mode: IoDriveMode,
pub wakeup_time: WakeupTime,
pub fec: ForwardErrorCorrectionMode,
pub transmission_power: TransmissionPower,
}Expand description
CLI interface definition.
Fields
mode: ModeApplication mode.
address: u16Module Address (16 Bit).
channel: u8Channel (8 Bit).
persistence: PersistenceWhether settings should be saved persistently on the module.
uart_parity: ParityUART Parity.
uart_rate: BaudRateUART Baudrate.
air_rate: AirBaudRateAir Baudrate.
transmission_mode: TransmissionModeTransmission Mode.
io_drive_mode: IoDriveModeIO drive Mode for AUX pin.
wakeup_time: WakeupTimeWireless Wakeup Time.
fec: ForwardErrorCorrectionModeForward Error Correction Mode.
transmission_power: TransmissionPowerTransmission Power.
Trait Implementations
sourceimpl CommandFactory for App
impl CommandFactory for App
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_updatesourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl From<&App> for Parameters
impl From<&App> for Parameters
sourceimpl FromArgMatches for App
impl FromArgMatches for App
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn 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>
sourcefn 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.sourcefn 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.sourceimpl Parser for App
impl Parser for App
sourcefn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
impl Eq for App
impl StructuralEq for App
impl StructuralPartialEq for App
Auto Trait Implementations
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.