pub enum CanEvent {
BusOff,
BusRecovered,
BitError {
src: NodeAddress,
},
}Expand description
Events the CanSimBus delivers to nodes alongside messages.
Variants§
BusOff
Bus transitioned to bus-off state.
BusRecovered
Bus recovered from bus-off state.
BitError
A bit error was detected on a frame from src.
Fields
§
src: NodeAddressTrait Implementations§
impl Eq for CanEvent
impl StructuralPartialEq for CanEvent
Auto Trait Implementations§
impl Freeze for CanEvent
impl RefUnwindSafe for CanEvent
impl Send for CanEvent
impl Sync for CanEvent
impl Unpin for CanEvent
impl UnsafeUnpin for CanEvent
impl UnwindSafe for CanEvent
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