fedimint_meta_client::api

Trait MetaFederationApi

source
pub trait MetaFederationApi {
    // Required methods
    fn get_consensus<'life0, 'async_trait>(
        &'life0 self,
        key: MetaKey,
    ) -> Pin<Box<dyn Future<Output = FederationResult<Option<MetaConsensusValue>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_consensus_rev<'life0, 'async_trait>(
        &'life0 self,
        key: MetaKey,
    ) -> Pin<Box<dyn Future<Output = FederationResult<Option<u64>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_submissions<'life0, 'async_trait>(
        &'life0 self,
        key: MetaKey,
        auth: ApiAuth,
    ) -> Pin<Box<dyn Future<Output = FederationResult<GetSubmissionResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn submit<'life0, 'async_trait>(
        &'life0 self,
        key: MetaKey,
        value: MetaValue,
        auth: ApiAuth,
    ) -> Pin<Box<dyn Future<Output = FederationResult<Option<u64>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn get_consensus<'life0, 'async_trait>( &'life0 self, key: MetaKey, ) -> Pin<Box<dyn Future<Output = FederationResult<Option<MetaConsensusValue>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_consensus_rev<'life0, 'async_trait>( &'life0 self, key: MetaKey, ) -> Pin<Box<dyn Future<Output = FederationResult<Option<u64>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_submissions<'life0, 'async_trait>( &'life0 self, key: MetaKey, auth: ApiAuth, ) -> Pin<Box<dyn Future<Output = FederationResult<GetSubmissionResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn submit<'life0, 'async_trait>( &'life0 self, key: MetaKey, value: MetaValue, auth: ApiAuth, ) -> Pin<Box<dyn Future<Output = FederationResult<Option<u64>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§