[][src]Struct lorawan::maccommands::LinkADRAnsPayload

pub struct LinkADRAnsPayload<'a>(_);

LinkADRAnsPayload represents the LinkADRAns LoRaWAN MACCommand.

Implementations

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

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

pub fn channel_mask_ack(&self) -> bool[src]

Whether the channel mask change was applied successsfully.

pub fn data_rate_ack(&self) -> bool[src]

Whether the data rate change was applied successsfully.

pub fn powert_ack(&self) -> bool[src]

Whether the power 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 LinkADRAnsPayload<'a>[src]

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for LinkADRAnsPayload<'a>

impl<'a> Send for LinkADRAnsPayload<'a>

impl<'a> Sync for LinkADRAnsPayload<'a>

impl<'a> Unpin for LinkADRAnsPayload<'a>

impl<'a> UnwindSafe for LinkADRAnsPayload<'a>

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.