Struct lorawan::maccommands::DlChannelReqPayload
source · pub struct DlChannelReqPayload<'a>(/* private fields */);
Expand description
DlChannelReqPayload represents the DlChannelReq LoRaWAN MACCommand.
Implementations§
source§impl<'a> DlChannelReqPayload<'a>
impl<'a> DlChannelReqPayload<'a>
sourcepub fn new(data: &'a [u8]) -> Result<DlChannelReqPayload<'a>, Error>
pub fn new(data: &'a [u8]) -> Result<DlChannelReqPayload<'a>, Error>
Creates a new instance of the mac command if there is enought data.
sourcepub fn new_from_raw(data: &'a [u8]) -> DlChannelReqPayload<'a>
pub fn new_from_raw(data: &'a [u8]) -> DlChannelReqPayload<'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 DlChannelReqPayload<'_>
impl DlChannelReqPayload<'_>
Trait Implementations§
source§impl<'a> Debug for DlChannelReqPayload<'a>
impl<'a> Debug for DlChannelReqPayload<'a>
source§impl<'a> PartialEq for DlChannelReqPayload<'a>
impl<'a> PartialEq for DlChannelReqPayload<'a>
source§fn eq(&self, other: &DlChannelReqPayload<'a>) -> bool
fn eq(&self, other: &DlChannelReqPayload<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for DlChannelReqPayload<'a>
impl<'a> StructuralEq for DlChannelReqPayload<'a>
impl<'a> StructuralPartialEq for DlChannelReqPayload<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DlChannelReqPayload<'a>
impl<'a> Send for DlChannelReqPayload<'a>
impl<'a> Sync for DlChannelReqPayload<'a>
impl<'a> Unpin for DlChannelReqPayload<'a>
impl<'a> UnwindSafe for DlChannelReqPayload<'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