fedimint_client::meta

Trait MetaSource

Source
pub trait MetaSource:
    MaybeSend
    + MaybeSync
    + 'static {
    // Required methods
    fn wait_for_update<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        client_config: &'life1 ClientConfig,
        api: &'life2 DynGlobalApi,
        fetch_kind: FetchKind,
        last_revision: Option<u64>,
    ) -> Pin<Box<dyn Future<Output = Result<MetaValues>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

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

Wait for next change in this source.

Source

fn fetch<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, client_config: &'life1 ClientConfig, api: &'life2 DynGlobalApi, fetch_kind: FetchKind, last_revision: Option<u64>, ) -> Pin<Box<dyn Future<Output = Result<MetaValues>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§