Struct lorawan::maccommands::LinkADRReqPayload
source · pub struct LinkADRReqPayload<'a>(/* private fields */);
Expand description
LinkADRReqPayload represents the LinkADRReq LoRaWAN MACCommand.
Implementations§
source§impl<'a> LinkADRReqPayload<'a>
impl<'a> LinkADRReqPayload<'a>
sourcepub fn new(data: &'a [u8]) -> Result<LinkADRReqPayload<'a>, Error>
pub fn new(data: &'a [u8]) -> Result<LinkADRReqPayload<'a>, Error>
Creates a new instance of the MAC command if there is enought data.
sourcepub fn new_from_raw(data: &'a [u8]) -> LinkADRReqPayload<'a>
pub fn new_from_raw(data: &'a [u8]) -> LinkADRReqPayload<'a>
Constructs a new instance of the MAC command from the provided data, without verifying the data length.
Improper use of this method could lead to panic during runtime!
source§impl<'a> LinkADRReqPayload<'a>
impl<'a> LinkADRReqPayload<'a>
sourcepub fn channel_mask(&self) -> ChannelMask<2>
pub fn channel_mask(&self) -> ChannelMask<2>
Usable channels for next transmissions.
sourcepub fn redundancy(&self) -> Redundancy
pub fn redundancy(&self) -> Redundancy
Provides information how channel mask is to be interpreted and how many times each message should be repeated.
Trait Implementations§
source§impl<'a> Debug for LinkADRReqPayload<'a>
impl<'a> Debug for LinkADRReqPayload<'a>
source§impl<'a> Format for LinkADRReqPayload<'a>
impl<'a> Format for LinkADRReqPayload<'a>
source§impl<'a> PartialEq for LinkADRReqPayload<'a>
impl<'a> PartialEq for LinkADRReqPayload<'a>
impl<'a> Eq for LinkADRReqPayload<'a>
impl<'a> StructuralPartialEq for LinkADRReqPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for LinkADRReqPayload<'a>
impl<'a> RefUnwindSafe for LinkADRReqPayload<'a>
impl<'a> Send for LinkADRReqPayload<'a>
impl<'a> Sync for LinkADRReqPayload<'a>
impl<'a> Unpin for LinkADRReqPayload<'a>
impl<'a> UnwindSafe for LinkADRReqPayload<'a>
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