pub struct CanFdFrame { /* private fields */ }Expand description
A CAN FD frame.
Supports up to 64 bytes of data with flexible data rate.
Implementations§
Source§impl CanFdFrame
impl CanFdFrame
Sourcepub fn new_with_flags(id: u32, data: &[u8], flags: CanFdFlags) -> Result<Self>
pub fn new_with_flags(id: u32, data: &[u8], flags: CanFdFlags) -> Result<Self>
Create a new CAN FD frame with flags.
Sourcepub fn is_extended(&self) -> bool
pub fn is_extended(&self) -> bool
Check if this is an extended frame.
Sourcepub fn flags(&self) -> CanFdFlags
pub fn flags(&self) -> CanFdFlags
Get the FD flags.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CanFdFrame
impl RefUnwindSafe for CanFdFrame
impl Send for CanFdFrame
impl Sync for CanFdFrame
impl Unpin for CanFdFrame
impl UnsafeUnpin for CanFdFrame
impl UnwindSafe for CanFdFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more