Enum ieee802154::mac::frame::FooterMode
source · [−]pub enum FooterMode {
None,
Explicit,
}
Expand description
Controls whether the footer is read/written with the frame
Eventually, this should support three options:
- Don’t read or write the footer
- Calculate the 2-byte CRC checksum and write that as the footer or check against read value
- Read into or write the footer from the
footer
field
For now, only 1 and 3 are supported.
Variants
None
Don’t read/write the footer
Explicit
Read into or write the footer from the footer
field
Trait Implementations
sourcefn clone(&self) -> FooterMode
fn clone(&self) -> FooterMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourcefn try_read(bytes: &'a [u8], mode: FooterMode) -> Result<(Self, usize)>
fn try_read(bytes: &'a [u8], mode: FooterMode) -> Result<(Self, usize)>
Try to read a frame
Frames that have security enabled can not be processed by this function, and an
error will be returned if the frame contained in bytes
does have it enabled.
If you expect to receive secured frames, use Frame::try_read_and_unsecure
instead,