pub trait Executor
where Self: Sized,
{ // Required methods fn handle_events<'life0, 'async_trait>( &'life0 mut self, blocks: Vec<BlockData> ) -> Pin<Box<dyn Future<Output = IndexerResult<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn manifest(&self) -> &Manifest; fn kill_switch(&self) -> &Arc<AtomicBool>; fn get_error_message<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = IndexerResult<String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }
Expand description

Executors are responsible for the actual indexing of data.

Required Methods§

source

fn handle_events<'life0, 'async_trait>( &'life0 mut self, blocks: Vec<BlockData> ) -> Pin<Box<dyn Future<Output = IndexerResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn manifest(&self) -> &Manifest

source

fn kill_switch(&self) -> &Arc<AtomicBool>

source

fn get_error_message<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = IndexerResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§