Trait fuel_indexer::executor::Executor
source · pub trait Executorwhere
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§
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,
Object Safety§
This trait is not object safe.