CanListener

Trait CanListener 

Source
pub trait CanListener<C, F>: Send + Sync
where F: Frame,
{ // 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; }

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

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,

Callback when frame transmit success.

Source

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 frames received.

Implementors§