Trait CanListener
Source pub trait CanListener<C, F>: Send + Sync{
// Required methods
fn as_any(&self) -> &dyn Any;
fn on_frame_transmitted<'life0, 'async_trait>(
&'life0 self,
channel: C,
id: Id,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn on_frame_received<'life0, 'async_trait>(
&'life0 self,
frames: Weak<Vec<F>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Callback when frame transmit success.
Callback when frames received.