pub trait Frame {
type Id: Id;
// Required methods
fn is_remote_frame(&self) -> bool;
fn is_data_frame(&self) -> bool;
fn id(&self) -> Self::Id;
fn data(&self) -> Option<&[u8]>;
// Provided methods
fn is_base_id_frame(&self) -> bool { ... }
fn is_extended_id_frame(&self) -> bool { ... }
}
Expand description
A Can Frame
Required Associated Types§
Required Methods§
Sourcefn is_remote_frame(&self) -> bool
fn is_remote_frame(&self) -> bool
Returns true if this Frame
is a remote frame
Sourcefn is_data_frame(&self) -> bool
fn is_data_frame(&self) -> bool
Returns true if this Frame
is a data frame
Provided Methods§
Sourcefn is_base_id_frame(&self) -> bool
fn is_base_id_frame(&self) -> bool
Returns true if this Frame
is a extended id frame
Sourcefn is_extended_id_frame(&self) -> bool
fn is_extended_id_frame(&self) -> bool
Returns true if this Frame
is a extended id frame