pub enum Mode {
Classic,
Fd {
allow_bit_rate_switching: bool,
data_phase_timing: BitTiming,
},
}Expand description
Enable/disable CAN-FD and related features
Variants§
Classic
Classic mode with 8-bytes data. Reception of an FD frame is considered an error.
Fd
Transmission and reception of CAN FD frames (with up to 64 bytes of data) is enabled. This does not prevent use of classic CAN frames.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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