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 when 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 when 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 when 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
Source§impl Format for LinkADRAnsCreator
impl Format for LinkADRAnsCreator
Auto Trait Implementations§
impl Freeze for LinkADRAnsCreator
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