[−][src]Struct lorawan::maccommandcreator::LinkADRAnsCreator
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
impl LinkADRAnsCreator
[src]
pub fn new() -> Self
[src]
Creates a new instance of the class.
pub fn build(&self) -> &[u8]
[src]
Returns the serialized version of the class as bytes.
impl LinkADRAnsCreator
[src]
pub fn set_channel_mask_ack(&mut self, ack: bool) -> &mut Self
[src]
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.
pub fn set_data_rate_ack(&mut self, ack: bool) -> &mut Self
[src]
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.
pub fn set_tx_power_ack(&mut self, ack: bool) -> &mut Self
[src]
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
impl Default for LinkADRAnsCreator
[src]
impl SerializableMacCommand for LinkADRAnsCreator
[src]
Auto Trait Implementations
impl RefUnwindSafe for LinkADRAnsCreator
[src]
impl Send for LinkADRAnsCreator
[src]
impl Sync for LinkADRAnsCreator
[src]
impl Unpin for LinkADRAnsCreator
[src]
impl UnwindSafe for LinkADRAnsCreator
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,