pub enum FaultConfinementState {
ErrorActive,
ErrorPassive,
BusOff,
}
Expand description
The 3 fault confinement states as described in the CAN 2.0 spec.
Variants§
ErrorActive
Errors are so few that this interface tells the whole bus when they happen.
ErrorPassive
Errors are numerous enough that informing the bus of them isn’t allowed, but regular Rx and Tx can still work.
BusOff
There are so many bus errors that we’re effectively not connected, Rx and Tx are disabled.
Auto Trait Implementations§
impl Freeze for FaultConfinementState
impl RefUnwindSafe for FaultConfinementState
impl Send for FaultConfinementState
impl Sync for FaultConfinementState
impl Unpin for FaultConfinementState
impl UnwindSafe for FaultConfinementState
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