pub trait CanFdFrameMutExt: CanFdFrameExt {
// Required method
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ;
// Provided methods
fn set_id_word(&mut self, word: u32) -> Result<(), CanError> { ... }
fn set_standard_id(&mut self, id: &StandardCanId) -> Result<(), CanError> { ... }
fn set_extended_id(&mut self, id: &ExtendedCanId) -> Result<(), CanError> { ... }
fn set_flags(
&mut self,
edl: bool,
brs: bool,
esi: bool,
) -> Result<(), CanError> { ... }
fn set_dlc(&mut self, dlc: u8) -> Result<(), CanError> { ... }
fn write_data(&mut self, data: &[u8]) -> Result<(), CanError> { ... }
}Required Methods§
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
Provided Methods§
fn set_id_word(&mut self, word: u32) -> Result<(), CanError>
fn set_standard_id(&mut self, id: &StandardCanId) -> Result<(), CanError>
fn set_extended_id(&mut self, id: &ExtendedCanId) -> Result<(), CanError>
fn set_flags(&mut self, edl: bool, brs: bool, esi: bool) -> Result<(), CanError>
fn set_dlc(&mut self, dlc: u8) -> Result<(), CanError>
fn write_data(&mut self, data: &[u8]) -> Result<(), CanError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".