fedimint_wallet_server::feerate_source

Trait FeeRateSource

Source
pub trait FeeRateSource: Send + Sync {
    // Required methods
    fn name(&self) -> String;
    fn fetch<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Feerate>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn name(&self) -> String

Source

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

Implementations on Foreign Types§

Source§

impl FeeRateSource for DynBitcoindRpc

Source§

fn name(&self) -> String

Source§

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

Implementors§