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