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§