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