pub trait CanEventHandler {
// Required method
fn on_can_event(&mut self, event: &CanEvent, now: Instant);
}Expand description
Optional trait for nodes that need to observe CAN bus events.
Nodes may implement this to react to bus-off, recovery, and bit errors. The CanSimRunner
calls this after message delivery on each tick.
Required Methods§
fn on_can_event(&mut self, event: &CanEvent, now: Instant)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".