CandleHandler

Trait CandleHandler 

Source
pub trait CandleHandler: Send {
    // Required method
    fn on_candle<'life0, 'async_trait>(
        &'life0 mut self,
        candle: Candle,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Abstract handler for candle events.

Required Methods§

Source

fn on_candle<'life0, 'async_trait>( &'life0 mut self, candle: Candle, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Called for each incoming candle.

Implementors§