pub trait Raw {
// Required methods
fn id(&self) -> Id;
fn decoded_dlc(&self) -> usize;
fn dlc(&self) -> u8;
fn fd_format(&self) -> bool;
fn is_remote_frame(&self) -> bool;
fn data(&self) -> &[u8];
fn is_extended(&self) -> bool;
fn is_transmitter_error_passive(&self) -> bool;
fn bit_rate_switching(&self) -> bool;
}Expand description
Common functionality for all raw messages. This is a trait instead of directly associated methods to allow the message size to be erased.
Required Methods§
Sourcefn decoded_dlc(&self) -> usize
fn decoded_dlc(&self) -> usize
Data length in bytes
Sourcefn is_remote_frame(&self) -> bool
fn is_remote_frame(&self) -> bool
Remote Transmission Request
Sourcefn is_extended(&self) -> bool
fn is_extended(&self) -> bool
Check if the frame uses and extended (29-bit) ID
Sourcefn is_transmitter_error_passive(&self) -> bool
fn is_transmitter_error_passive(&self) -> bool
true if the sender of the message indicates that it is in “error
passive” state.
Sourcefn bit_rate_switching(&self) -> bool
fn bit_rate_switching(&self) -> bool
true if bit rate switching is used
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".