pub enum CanBusState {
Active,
ErrorPassive,
BusOff {
since: Instant,
},
}Variants§
Active
Bus is operational - frames are delivered normally.
ErrorPassive
Bus is in error-passive state - frames may still be delivered but error counts are elevated.
BusOff
Bus-off - no frames are delivered until the bus is reset.
Implementations§
Source§impl CanBusState
impl CanBusState
pub fn is_operational(&self) -> bool
Trait Implementations§
Source§impl Clone for CanBusState
impl Clone for CanBusState
Source§fn clone(&self) -> CanBusState
fn clone(&self) -> CanBusState
Returns a duplicate 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 CanBusState
impl Debug for CanBusState
Source§impl PartialEq for CanBusState
impl PartialEq for CanBusState
impl Eq for CanBusState
impl StructuralPartialEq for CanBusState
Auto Trait Implementations§
impl Freeze for CanBusState
impl RefUnwindSafe for CanBusState
impl Send for CanBusState
impl Sync for CanBusState
impl Unpin for CanBusState
impl UnsafeUnpin for CanBusState
impl UnwindSafe for CanBusState
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