Struct bxcan::Frame[][src]

pub struct Frame { /* fields omitted */ }
Expand description

A CAN data or remote frame.

Implementations

Creates a new data frame.

Creates a new remote frame with configurable data length code (DLC).

Panics

This function will panic if dlc is not inside the valid range 0..=8.

Returns true if this frame is an extended frame.

Returns true if this frame is a standard frame.

Returns true if this frame is a remote frame.

Returns true if this frame is a data frame.

Returns the frame identifier.

Returns the priority of this frame.

Returns the data length code (DLC) which is in the range 0..8.

For data frames the DLC value always matches the length of the data. Remote frames do not carry any data, yet the DLC can be greater than 0.

Returns the frame data (0..8 bytes in length) if this is a data frame.

If this is a remote frame, returns None.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.