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