pub struct Frame<I> { /* private fields */ }
Expand description

CAN or CAN FD data frame with up to 64 bytes of data and an extended 29-bit ID

RTR/Error frames are not used and therefore not modeled here. CAN frames with 11-bit ID are not used by UAVCAN/CAN and so they are not supported by the library.

Implementations

Creates a frame

Panics

This function will panic if the length of data is greater than FRAME_CAPACITY.

Returns the ID of this frame

Returns the data in this frame

Returns the timestamp when this frame was received (for incoming frames) or the transmission deadline (for outgoing frames)

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

Returns the “default value” for a type. 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

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.