Skip to main content

CanEventHandler

Trait CanEventHandler 

Source
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§

Source

fn on_can_event(&mut self, event: &CanEvent, now: Instant)

Implementors§