[−][src]Trait lorawan::parser::DataHeader
Helper trait for EncryptedDataPayload and DecryptedDataPayload.
NOTE: Does not check the payload size as that should be done prior to building the object of the implementing type.
Required methods
fn as_data_bytes(&self) -> &[u8]
Equivalent to AsRef<u8>.
Provided methods
fn fhdr(&self) -> FHDR
Gives the FHDR of the DataPayload.
fn is_uplink(&self) -> bool
Gives whether the payload is uplink or not.
fn f_port(&self) -> Option<u8>
Gives the FPort of the DataPayload if there is one.
fn fhdr_length(&self) -> usize
Gives the length of the FHDR field.