pub struct Received<'a> {
pub frame: &'a [u8],
pub rssi_dbm: Option<i16>,
pub rssi_raw: Option<u8>,
pub timestamp: Option<u32>,
pub mode: Option<(LinkMode, bool)>,
pub decrypted_by_stick: bool,
}Expand description
A radio telegram the stick received.
Fields§
§frame: &'a [u8]The telegram from the L field, link-layer CRCs removed (Format::Stripped).
rssi_dbm: Option<i16>The signal strength in dBm: as reported (iU891A), by the vendor’s formula (Amber), or approximated from the raw value (iM871A, whose vendor gives none).
rssi_raw: Option<u8>The stick’s raw RSSI byte, if it sent one.
timestamp: Option<u32>The stick’s reception timestamp: its own clock (iM871A), or UTC seconds (iU891A).
mode: Option<(LinkMode, bool)>The link mode and frame format it arrived in, if the stick says (iU891A).
decrypted_by_stick: boolThe stick decrypted the payload itself with a key stored in it (iU891A).
Trait Implementations§
impl<'a> Copy for Received<'a>
impl<'a> Eq for Received<'a>
impl<'a> StructuralPartialEq for Received<'a>
Auto Trait Implementations§
impl<'a> Forget for Received<'a>
impl<'a> Freeze for Received<'a>
impl<'a> Move for Received<'a>
impl<'a> RefUnwindSafe for Received<'a>
impl<'a> Send for Received<'a>
impl<'a> Sync for Received<'a>
impl<'a> Unpin for Received<'a>
impl<'a> UnsafeUnpin for Received<'a>
impl<'a> UnwindSafe for Received<'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