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