Struct radio::helpers::PingPongOptions
source · pub struct PingPongOptions {
pub rounds: u32,
pub power: Option<i8>,
pub delay: Duration,
pub parse_info: bool,
pub blocking_options: BlockingOptions,
}
Expand description
Configuration for Echo operation
Fields§
§rounds: u32
Specify the number of rounds to tx/rx
power: Option<i8>
Power in dBm (range -18dBm to 13dBm)
delay: Duration
Specify delay for response message
parse_info: bool
Parse RSSI and other info from response messages (echo server must have –append-info set)
blocking_options: BlockingOptions
Trait Implementations§
source§impl Args for PingPongOptions
impl Args for PingPongOptions
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Clone for PingPongOptions
impl Clone for PingPongOptions
source§fn clone(&self) -> PingPongOptions
fn clone(&self) -> PingPongOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CommandFactory for PingPongOptions
impl CommandFactory for PingPongOptions
source§impl Debug for PingPongOptions
impl Debug for PingPongOptions
source§impl FromArgMatches for PingPongOptions
impl FromArgMatches for PingPongOptions
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 PingPongOptions
impl Parser for PingPongOptions
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)
Update from iterator, exit on error.
source§impl PartialEq for PingPongOptions
impl PartialEq for PingPongOptions
source§fn eq(&self, other: &PingPongOptions) -> bool
fn eq(&self, other: &PingPongOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PingPongOptions
Auto Trait Implementations§
impl Freeze for PingPongOptions
impl RefUnwindSafe for PingPongOptions
impl Send for PingPongOptions
impl Sync for PingPongOptions
impl Unpin for PingPongOptions
impl UnwindSafe for PingPongOptions
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