pub struct Frame<'o> {
pub c: u8,
pub address: Address,
pub ci: u8,
pub payload: &'o [u8],
}Expand description
A decoded wireless frame, CRCs removed.
Fields§
§c: u8C field.
address: AddressThe sending meter.
ci: u8CI field: what the payload is.
payload: &'o [u8]The payload after the CI field (header and records, possibly encrypted).
Implementations§
Source§impl<'o> Frame<'o>
impl<'o> Frame<'o>
Sourcepub fn application(&self) -> Result<Application<'o>>
pub fn application(&self) -> Result<Application<'o>>
The layers above the link layer (ELL, AFL, TPL) and the records, parsed with this frame’s address as the link address (it forms the mode-5 and ELL IVs).
Trait Implementations§
impl<'o> Copy for Frame<'o>
impl<'o> Eq for Frame<'o>
impl<'o> StructuralPartialEq for Frame<'o>
Auto Trait Implementations§
impl<'o> Forget for Frame<'o>
impl<'o> Freeze for Frame<'o>
impl<'o> Move for Frame<'o>
impl<'o> RefUnwindSafe for Frame<'o>
impl<'o> Send for Frame<'o>
impl<'o> Sync for Frame<'o>
impl<'o> Unpin for Frame<'o>
impl<'o> UnsafeUnpin for Frame<'o>where
&'o [u8]: UnsafeUnpin,
impl<'o> UnwindSafe for Frame<'o>where
&'o [u8]: UnwindSafe,
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