Trait SourceFactory

Source
pub trait SourceFactory: Send + Sync {
    // Required methods
    fn get_source<'life0, 'async_trait>(
        &'life0 self,
        start_block: u32,
        block_hash: BlockHash,
        filter_header: FilterHeader,
    ) -> Pin<Box<dyn Future<Output = Box<dyn Source>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_network(&self) -> Network;
}

Required Methods§

Source

fn get_source<'life0, 'async_trait>( &'life0 self, start_block: u32, block_hash: BlockHash, filter_header: FilterHeader, ) -> Pin<Box<dyn Future<Output = Box<dyn Source>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a new TXOO Source

Source

fn get_network(&self) -> Network

Implementors§