Trait Plugin

Source
pub trait Plugin: Send + Sync {
    // Required methods
    fn receive(
        &self,
        tx: Sender<Box<[u8]>>,
        command: u8,
    ) -> Pin<Box<dyn Future<Output = ()> + Send>>;
    fn info(&self, message: &str);
}

Required Methods§

Source

fn receive( &self, tx: Sender<Box<[u8]>>, command: u8, ) -> Pin<Box<dyn Future<Output = ()> + Send>>

Source

fn info(&self, message: &str)

Implementors§