Enum socketcan::frame::CanAnyFrame
source · pub enum CanAnyFrame {
Normal(CanDataFrame),
Remote(CanRemoteFrame),
Error(CanErrorFrame),
Fd(CanFdFrame),
}
Expand description
Any frame type.
Variants§
Normal(CanDataFrame)
A classic CAN 2.0 frame, with up to 8-bytes of data
Remote(CanRemoteFrame)
A CAN Remote Frame
Error(CanErrorFrame)
An error frame
Fd(CanFdFrame)
A flexible data rate frame, with up to 64-bytes of data
Trait Implementations§
source§impl AsPtr for CanAnyFrame
impl AsPtr for CanAnyFrame
source§impl Clone for CanAnyFrame
impl Clone for CanAnyFrame
source§fn clone(&self) -> CanAnyFrame
fn clone(&self) -> CanAnyFrame
Returns a copy 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 moresource§impl Debug for CanAnyFrame
impl Debug for CanAnyFrame
source§impl From<CanFdFrame> for CanAnyFrame
impl From<CanFdFrame> for CanAnyFrame
source§fn from(frame: CanFdFrame) -> Self
fn from(frame: CanFdFrame) -> Self
Converts to this type from the input type.
source§impl From<CanFrame> for CanAnyFrame
impl From<CanFrame> for CanAnyFrame
source§impl UpperHex for CanAnyFrame
impl UpperHex for CanAnyFrame
impl Copy for CanAnyFrame
Auto Trait Implementations§
impl RefUnwindSafe for CanAnyFrame
impl Send for CanAnyFrame
impl Sync for CanAnyFrame
impl Unpin for CanAnyFrame
impl UnwindSafe for CanAnyFrame
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