Skip to main content

UpdateSource

Trait UpdateSource 

Source
pub trait UpdateSource: Send + 'static {
    // Required method
    fn poll<'a>(
        &'a mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Update>>> + Send + 'a>>;
}
Expand description

Pluggable update input source used by BotEngine.

Required Methods§

Source

fn poll<'a>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Update>>> + Send + 'a>>

Implementors§