[][src]Struct lorawan::maccommands::RXParamSetupReqPayload

pub struct RXParamSetupReqPayload<'a>(_);

RXParamSetupReqPayload represents the RXParamSetupReq LoRaWAN MACCommand.

Implementations

impl<'a> RXParamSetupReqPayload<'a>[src]

pub fn new<'b>(data: &'a [u8]) -> Result<RXParamSetupReqPayload<'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]

pub const fn cid() -> u8[src]

Command identifier.

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> RXParamSetupReqPayload<'a>[src]

pub fn dl_settings(&self) -> DLSettings[src]

Downlink settings - namely rx1_dr_offset and rx2_data_rate.

pub fn frequency(&self) -> Frequency[src]

RX2 frequency.

Trait Implementations

impl<'a> Debug for RXParamSetupReqPayload<'a>[src]

impl<'a> PartialEq<RXParamSetupReqPayload<'a>> for RXParamSetupReqPayload<'a>[src]

impl<'a> StructuralPartialEq for RXParamSetupReqPayload<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.