ProvidesFeeRates

Trait ProvidesFeeRates 

Source
pub trait ProvidesFeeRates: Sync {
    // Required method
    fn fee_rate(
        &self,
        priority: FeePriority,
        max_per_weight: u64,
    ) -> impl Send + Future<Output = Result<FeeRate, FeeError>>;
}
Expand description

An interface which provides fee rates.

Required Methods§

Source

fn fee_rate( &self, priority: FeePriority, max_per_weight: u64, ) -> impl Send + Future<Output = Result<FeeRate, FeeError>>

Get the recommended fee rate.

This MUST NOT be expected to be deterministic in any way.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§