Struct radio::helpers::TransmitOptions
source · pub struct TransmitOptions {
pub data: Vec<u8>,
pub power: Option<i8>,
pub period: Option<Duration>,
pub blocking_options: BlockingOptions,
}
Expand description
Configuration for Transmit operation
Fields§
§data: Vec<u8>
Data to be transmitted
power: Option<i8>
Power in dBm (range -18dBm to 13dBm)
period: Option<Duration>
Specify period for repeated transmission
blocking_options: BlockingOptions
Trait Implementations§
source§impl Args for TransmitOptions
impl Args for TransmitOptions
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Clone for TransmitOptions
impl Clone for TransmitOptions
source§fn clone(&self) -> TransmitOptions
fn clone(&self) -> TransmitOptions
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 TransmitOptions
impl CommandFactory for TransmitOptions
source§impl Debug for TransmitOptions
impl Debug for TransmitOptions
source§impl FromArgMatches for TransmitOptions
impl FromArgMatches for TransmitOptions
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 TransmitOptions
impl Parser for TransmitOptions
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 TransmitOptions
impl PartialEq for TransmitOptions
source§fn eq(&self, other: &TransmitOptions) -> bool
fn eq(&self, other: &TransmitOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransmitOptions
Auto Trait Implementations§
impl Freeze for TransmitOptions
impl RefUnwindSafe for TransmitOptions
impl Send for TransmitOptions
impl Sync for TransmitOptions
impl Unpin for TransmitOptions
impl UnwindSafe for TransmitOptions
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