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