pub struct CanFrame { /* private fields */ }Implementations§
Source§impl CanFrame
impl CanFrame
pub fn new( can_id: u32, msg_type: MessageType, data: &[u8], ) -> Result<CanFrame, FrameConstructionError>
pub fn is_standard_frame(&self) -> bool
pub fn is_extended_frame(&self) -> bool
pub fn is_error_frame(&self) -> bool
pub fn is_echo_frame(&self) -> bool
pub fn can_id(&self) -> u32
pub fn dlc(&self) -> u8
pub fn data(&self) -> &[u8] ⓘ
pub fn mut_data(&mut self) -> &mut [u8] ⓘ
Trait Implementations§
impl Copy for CanFrame
Auto Trait Implementations§
impl Freeze for CanFrame
impl RefUnwindSafe for CanFrame
impl Send for CanFrame
impl Sync for CanFrame
impl Unpin for CanFrame
impl UnwindSafe for CanFrame
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)