pub struct CanFdFrame { /* private fields */ }Implementations§
Source§impl CanFdFrame
impl CanFdFrame
pub fn new( can_id: u32, msg_type: MessageType, data: &[u8], fd: bool, brs: bool, ) -> Result<CanFdFrame, 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 is_fd_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] ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for CanFdFrame
impl Clone for CanFdFrame
Source§fn clone(&self) -> CanFdFrame
fn clone(&self) -> CanFdFrame
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanFdFrame
impl Debug for CanFdFrame
Source§impl Default for CanFdFrame
impl Default for CanFdFrame
Source§impl PartialEq for CanFdFrame
impl PartialEq for CanFdFrame
impl Copy for CanFdFrame
Auto Trait Implementations§
impl Freeze for CanFdFrame
impl RefUnwindSafe for CanFdFrame
impl Send for CanFdFrame
impl Sync for CanFdFrame
impl Unpin for CanFdFrame
impl UnwindSafe for CanFdFrame
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)