Struct lorawan::maccommandcreator::LinkADRAnsCreator
source · pub struct LinkADRAnsCreator { /* private fields */ }
Expand description
LinkADRAnsCreator serves for creating LinkADRAns MacCommand.
Examples
let mut creator = lorawan::maccommandcreator::LinkADRAnsCreator::new();
let res = creator
.set_channel_mask_ack(true)
.set_data_rate_ack(true)
.set_tx_power_ack(true)
.build();
Implementations§
source§impl LinkADRAnsCreator
impl LinkADRAnsCreator
sourcepub fn set_channel_mask_ack(&mut self, ack: bool) -> &mut Self
pub fn set_channel_mask_ack(&mut self, ack: bool) -> &mut Self
Sets the channel mask acknowledgement of the LinkADRAns to the provided value.
Argument
- ack - true meaning that the channel mask was acceptable or false otherwise.
sourcepub fn set_data_rate_ack(&mut self, ack: bool) -> &mut Self
pub fn set_data_rate_ack(&mut self, ack: bool) -> &mut Self
Sets the data rate acknowledgement of the LinkADRAns to the provided value.
Argument
- ack - true meaning that the data rate was acceptable or false otherwise.
sourcepub fn set_tx_power_ack(&mut self, ack: bool) -> &mut Self
pub fn set_tx_power_ack(&mut self, ack: bool) -> &mut Self
Sets the tx power acknowledgement of the LinkADRAns to the provided value.
Argument
- ack - true meaning that the tx power was acceptable or false otherwise.
Trait Implementations§
source§impl Debug for LinkADRAnsCreator
impl Debug for LinkADRAnsCreator
source§impl Default for LinkADRAnsCreator
impl Default for LinkADRAnsCreator
Auto Trait Implementations§
impl RefUnwindSafe for LinkADRAnsCreator
impl Send for LinkADRAnsCreator
impl Sync for LinkADRAnsCreator
impl Unpin for LinkADRAnsCreator
impl UnwindSafe for LinkADRAnsCreator
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