[−][src]Struct lorawan::maccommands::LinkADRReqPayload
LinkADRReqPayload represents the LinkADRReq LoRaWAN MACCommand.
Implementations
impl<'a> LinkADRReqPayload<'a>
[src]
pub fn new<'b>(data: &'a [u8]) -> Result<LinkADRReqPayload<'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> LinkADRReqPayload<'a>
[src]
pub fn data_rate(&self) -> u8
[src]
Data Rate that the device should use for its next transmissions.
pub fn tx_power(&self) -> u8
[src]
TX Power that the device should use for its next transmissions.
pub fn channel_mask(&self) -> ChannelMask
[src]
Usable channels for next trasnmissions.
pub fn redundancy(&self) -> Redundancy
[src]
Provides information how channel mask is to be interpreted and how many times each message should be repeated.
Trait Implementations
impl<'a> Debug for LinkADRReqPayload<'a>
[src]
impl<'a> PartialEq<LinkADRReqPayload<'a>> for LinkADRReqPayload<'a>
[src]
fn eq(&self, other: &LinkADRReqPayload<'a>) -> bool
[src]
fn ne(&self, other: &LinkADRReqPayload<'a>) -> bool
[src]
impl<'a> StructuralPartialEq for LinkADRReqPayload<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for LinkADRReqPayload<'a>
impl<'a> Send for LinkADRReqPayload<'a>
impl<'a> Sync for LinkADRReqPayload<'a>
impl<'a> Unpin for LinkADRReqPayload<'a>
impl<'a> UnwindSafe for LinkADRReqPayload<'a>
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,
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.
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>,