#[repr(u32)]pub enum CanState {
ErrorActive = 0,
ErrorWarning = 1,
ErrorPassive = 2,
BusOff = 3,
Stopped = 4,
Sleeping = 5,
}Expand description
CAN operational and error states
Variants§
ErrorActive = 0
RX/TX error count < 96
ErrorWarning = 1
RX/TX error count < 128
ErrorPassive = 2
RX/TX error count < 256
BusOff = 3
RX/TX error count >= 256
Stopped = 4
Device is stopped
Sleeping = 5
Device is sleeping
Trait Implementations§
Source§impl Ord for CanState
impl Ord for CanState
Source§impl PartialOrd for CanState
impl PartialOrd for CanState
impl Copy for CanState
impl Eq for CanState
impl StructuralPartialEq for CanState
Auto Trait Implementations§
impl Freeze for CanState
impl RefUnwindSafe for CanState
impl Send for CanState
impl Sync for CanState
impl Unpin for CanState
impl UnwindSafe for CanState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more