pub struct RxData { /* private fields */ }Expand description
A decoded data frame, with its payload decrypted.
What Session::decode returns once a frame’s MIC has verified: the header fields and
the recovered payload, held in fixed buffers.
Implementations§
Source§impl RxData
impl RxData
Sourcepub fn fcnt(&self) -> u16
pub fn fcnt(&self) -> u16
Returns the low 16 bits of the frame counter the frame carried.
§Returns
The frame counter’s low half.
Sourcepub fn confirmed(&self) -> bool
pub fn confirmed(&self) -> bool
Reports whether the frame is a confirmed frame that expects an acknowledgment.
§Returns
true for a confirmed frame.
Sourcepub fn adr_ack_req(&self) -> bool
pub fn adr_ack_req(&self) -> bool
Reports whether an uplink asks the network to send something back.
§Returns
true if an uplink’s ADRACKReq bit is set. A downlink has a reserved bit in that
place, so this is always false for one.
Sourcepub fn class_b(&self) -> bool
pub fn class_b(&self) -> bool
Reports whether an uplink says its device has Class B enabled.
§Returns
true if an uplink’s ClassB bit is set, and always false for a downlink.
Trait Implementations§
impl Copy for RxData
impl Eq for RxData
impl StructuralPartialEq for RxData
Auto Trait Implementations§
impl Freeze for RxData
impl RefUnwindSafe for RxData
impl Send for RxData
impl Sync for RxData
impl Unpin for RxData
impl UnsafeUnpin for RxData
impl UnwindSafe for RxData
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