pub enum FooterMode {
    None,
    Explicit,
}
Expand description

Controls whether the footer is read/written with the frame

Eventually, this should support three options:

  1. Don’t read or write the footer
  2. Calculate the 2-byte CRC checksum and write that as the footer or check against read value
  3. Read into or write the footer from the footer field

For now, only 1 and 3 are supported.

Frame::try_write

Variants

None

Don’t read/write the footer

Explicit

Read into or write the footer from the footer field

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

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,

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.