Trait IsAsyncData

Source
pub trait IsAsyncData {
    // Required methods
    fn as_raw_data<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = RawResult<RawData>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_raw_block<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = RawResult<Option<RawBlock>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn as_raw_data<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = RawResult<RawData>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn fetch_raw_block<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = RawResult<Option<RawBlock>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§