#[repr(C)]
pub struct CanFrame { /* private fields */ }
Expand description

CanFrame

Uses the same memory layout as the underlying kernel struct for performance reasons.

Implementations

Return the error message

Check if frame is an error message

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

Create a new frame

Return the actual CAN ID (without EFF/RTR/ERR flags)

Check if frame uses 29 bit extended frame format

Check if frame is a remote transmission request

Data length

A slice into the actual data. Slice will always be <= 8 bytes in length

Creates a new remote frame (RTR bit set). Read more

Returns true if this frame is a standard frame.

Returns true if this frame is a data frame.

Formats the value using the given formatter.

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

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.