Enum embassy_stm32::can::enums::BusErrorMode
source ยท pub enum BusErrorMode {
ErrorActive,
ErrorPassive,
BusOff,
}
Expand description
Bus error modes.
Contrary to the BusError
enum which also includes last-seen acute protocol
errors, this enum includes only the mutually exclusive bus error modes.
Variantsยง
ErrorActive
Error active mode (default). Controller will transmit an active error frame upon protocol error.
ErrorPassive
Error passive mode. An error counter exceeded 127. Controller will transmit a passive error frame upon protocol error.
BusOff
Bus off mode. The transmit error counter exceeded 255. Controller is not participating in bus traffic.
Trait Implementationsยง
sourceยงimpl Debug for BusErrorMode
impl Debug for BusErrorMode
Auto Trait Implementationsยง
impl Freeze for BusErrorMode
impl RefUnwindSafe for BusErrorMode
impl Send for BusErrorMode
impl Sync for BusErrorMode
impl Unpin for BusErrorMode
impl UnwindSafe for BusErrorMode
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