Skip to main content

ExplorerApi

Trait ExplorerApi 

Source
pub trait ExplorerApi {
    // Required methods
    fn get_block_detail<'life0, 'async_trait>(
        &'life0 self,
        ident: BlockIdent,
    ) -> Pin<Box<dyn Future<Output = Result<BlockDetailResponse<SeqTypes>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_block_summaries<'life0, 'async_trait>(
        &'life0 self,
        target: BlockIdent,
        limit: u64,
    ) -> Pin<Box<dyn Future<Output = Result<BlockSummaryResponse<SeqTypes>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_transaction_detail<'life0, 'async_trait>(
        &'life0 self,
        ident: TxIdent,
    ) -> Pin<Box<dyn Future<Output = Result<TransactionDetailResponse<SeqTypes>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_transaction_summaries<'life0, 'async_trait>(
        &'life0 self,
        target: TxIdent,
        limit: u64,
        filter: TxSummaryFilter,
    ) -> Pin<Box<dyn Future<Output = Result<TransactionSummariesResponse<SeqTypes>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_explorer_summary<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ExplorerSummaryResponse<SeqTypes>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_search_result<'life0, 'async_trait>(
        &'life0 self,
        query: String,
    ) -> Pin<Box<dyn Future<Output = Result<SearchResultResponse<SeqTypes>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_block_detail<'life0, 'async_trait>( &'life0 self, ident: BlockIdent, ) -> Pin<Box<dyn Future<Output = Result<BlockDetailResponse<SeqTypes>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_block_summaries<'life0, 'async_trait>( &'life0 self, target: BlockIdent, limit: u64, ) -> Pin<Box<dyn Future<Output = Result<BlockSummaryResponse<SeqTypes>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_transaction_detail<'life0, 'async_trait>( &'life0 self, ident: TxIdent, ) -> Pin<Box<dyn Future<Output = Result<TransactionDetailResponse<SeqTypes>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_transaction_summaries<'life0, 'async_trait>( &'life0 self, target: TxIdent, limit: u64, filter: TxSummaryFilter, ) -> Pin<Box<dyn Future<Output = Result<TransactionSummariesResponse<SeqTypes>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_explorer_summary<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ExplorerSummaryResponse<SeqTypes>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_search_result<'life0, 'async_trait>( &'life0 self, query: String, ) -> Pin<Box<dyn Future<Output = Result<SearchResultResponse<SeqTypes>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§