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