ExternalFetcherT

Trait ExternalFetcherT 

Source
trait ExternalFetcherT: Send + Sync {
    // Required methods
    fn kind(&self) -> FetcherKind;
    fn timeout(&self) -> Duration;
    fn concurrency(&self) -> usize;
    fn invalid_api_key(&self) -> &AtomicBool;
    fn fetch<'life0, 'async_trait>(
        &'life0 self,
        address: Address,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Metadata>, EtherscanError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn kind(&self) -> FetcherKind

Source

fn timeout(&self) -> Duration

Source

fn concurrency(&self) -> usize

Source

fn invalid_api_key(&self) -> &AtomicBool

Source

fn fetch<'life0, 'async_trait>( &'life0 self, address: Address, ) -> Pin<Box<dyn Future<Output = Result<Option<Metadata>, EtherscanError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§