[−][src]Struct lorawan::maccommands::RXParamSetupAnsPayload
RXParamSetupAnsPayload represents the RXParamSetupAns LoRaWAN MACCommand.
Implementations
impl<'a> RXParamSetupAnsPayload<'a>
[src]
pub fn new<'b>(data: &'a [u8]) -> Result<RXParamSetupAnsPayload<'a>, &'b str>
[src]
Creates a new instance of the mac command if there is enought data.
pub fn new_as_mac_cmd<'b>(
data: &'a [u8]
) -> Result<(MacCommand<'a>, usize), &'b str>
[src]
data: &'a [u8]
) -> Result<(MacCommand<'a>, usize), &'b str>
pub const fn cid() -> u8
[src]
Command identifier.
pub const fn uplink() -> bool
[src]
Sent by end device or sent by network server.
pub const fn len() -> usize
[src]
length of the payload of the mac command.
impl<'a> RXParamSetupAnsPayload<'a>
[src]
pub fn channel_ack(&self) -> bool
[src]
Whether the channel change was applied successsfully.
pub fn rx2_data_rate_ack(&self) -> bool
[src]
Whether the rx2 data rate change was applied successsfully.
pub fn rx1_dr_offset_ack(&self) -> bool
[src]
Whether the rx1 data rate offset change was applied successsfully.
pub fn ack(&self) -> bool
[src]
Whether the device has accepted the new parameters or not.
Trait Implementations
impl<'a> Debug for RXParamSetupAnsPayload<'a>
[src]
impl<'a> PartialEq<RXParamSetupAnsPayload<'a>> for RXParamSetupAnsPayload<'a>
[src]
pub fn eq(&self, other: &RXParamSetupAnsPayload<'a>) -> bool
[src]
pub fn ne(&self, other: &RXParamSetupAnsPayload<'a>) -> bool
[src]
impl<'a> StructuralPartialEq for RXParamSetupAnsPayload<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for RXParamSetupAnsPayload<'a>
[src]
impl<'a> Send for RXParamSetupAnsPayload<'a>
[src]
impl<'a> Sync for RXParamSetupAnsPayload<'a>
[src]
impl<'a> Unpin for RXParamSetupAnsPayload<'a>
[src]
impl<'a> UnwindSafe for RXParamSetupAnsPayload<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,