pub trait AccountFetcher: Sync + Send {
    // Required methods
    fn fetch_raw_account<'life0, 'life1, 'async_trait>(
        &'life0 self,
        address: &'life1 Pubkey
    ) -> Pin<Box<dyn Future<Output = Result<AccountSharedData>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn fetch_program_accounts<'life0, 'life1, 'async_trait>(
        &'life0 self,
        program: &'life1 Pubkey,
        discriminator: [u8; 8]
    ) -> Pin<Box<dyn Future<Output = Result<Vec<(Pubkey, AccountSharedData)>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn fetch_multiple_accounts<'life0, 'life1, 'async_trait>(
        &'life0 self,
        keys: &'life1 [Pubkey]
    ) -> Pin<Box<dyn Future<Output = Result<Vec<(Pubkey, AccountSharedData)>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_slot<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn fetch_raw_account_lookup_table<'life0, 'life1, 'async_trait>(
        &'life0 self,
        address: &'life1 Pubkey
    ) -> Pin<Box<dyn Future<Output = Result<AccountSharedData>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

source

fn fetch_raw_account<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 Pubkey ) -> Pin<Box<dyn Future<Output = Result<AccountSharedData>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn fetch_program_accounts<'life0, 'life1, 'async_trait>( &'life0 self, program: &'life1 Pubkey, discriminator: [u8; 8] ) -> Pin<Box<dyn Future<Output = Result<Vec<(Pubkey, AccountSharedData)>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn fetch_multiple_accounts<'life0, 'life1, 'async_trait>( &'life0 self, keys: &'life1 [Pubkey] ) -> Pin<Box<dyn Future<Output = Result<Vec<(Pubkey, AccountSharedData)>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

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

Provided Methods§

source

fn fetch_raw_account_lookup_table<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 Pubkey ) -> Pin<Box<dyn Future<Output = Result<AccountSharedData>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§