pub trait Input: Closer {
// Required method
fn read<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(Message, CallbackChan), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Input module trait to insert crate::Message into the processing pipeline.
Required Methods§
Sourcefn read<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(Message, CallbackChan), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(Message, CallbackChan), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read single message from the input module and expected return a tuple containing the crate::Message and a crate::CallbackChan for reporting status back.