Struct lorawan::maccommands::NewChannelReqPayload
source · pub struct NewChannelReqPayload<'a>(/* private fields */);
Expand description
NewChannelReqPayload represents the NewChannelReq LoRaWAN MACCommand.
Implementations§
source§impl<'a> NewChannelReqPayload<'a>
impl<'a> NewChannelReqPayload<'a>
sourcepub fn new(data: &'a [u8]) -> Result<NewChannelReqPayload<'a>, Error>
pub fn new(data: &'a [u8]) -> Result<NewChannelReqPayload<'a>, Error>
Creates a new instance of the MAC command if there is enought data.
sourcepub fn new_from_raw(data: &'a [u8]) -> NewChannelReqPayload<'a>
pub fn new_from_raw(data: &'a [u8]) -> NewChannelReqPayload<'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> NewChannelReqPayload<'a>
impl<'a> NewChannelReqPayload<'a>
sourcepub fn channel_index(&self) -> u8
pub fn channel_index(&self) -> u8
The index of the channel being created or modified.
sourcepub fn data_rate_range(&self) -> DataRateRange
pub fn data_rate_range(&self) -> DataRateRange
The data rate range specifies allowed data rates for the new or modified channel.
Trait Implementations§
source§impl<'a> Debug for NewChannelReqPayload<'a>
impl<'a> Debug for NewChannelReqPayload<'a>
source§impl<'a> Format for NewChannelReqPayload<'a>
impl<'a> Format for NewChannelReqPayload<'a>
source§impl<'a> PartialEq for NewChannelReqPayload<'a>
impl<'a> PartialEq for NewChannelReqPayload<'a>
impl<'a> Eq for NewChannelReqPayload<'a>
impl<'a> StructuralPartialEq for NewChannelReqPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for NewChannelReqPayload<'a>
impl<'a> RefUnwindSafe for NewChannelReqPayload<'a>
impl<'a> Send for NewChannelReqPayload<'a>
impl<'a> Sync for NewChannelReqPayload<'a>
impl<'a> Unpin for NewChannelReqPayload<'a>
impl<'a> UnwindSafe for NewChannelReqPayload<'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