Struct nakamoto_node::client::protocol::fees::FeeEstimator
[−]pub struct FeeEstimator { /* private fields */ }Expand description
Transaction fee rate estimator.
Implementations
impl FeeEstimator
impl FeeEstimator
pub fn process(&mut self, block: Block, height: u64) -> Option<FeeEstimate>
pub fn process(&mut self, block: Block, height: u64) -> Option<FeeEstimate>
Process a block and get a fee estimate. Returns None if none of the transactions
could be processed due to missing UTXOs, or the block height isn’t greater than the
current block height of the fee estimator.
Panics
Panics if the block height is not greater than the current block height of the fee estimator.
Trait Implementations
impl Debug for FeeEstimator
impl Debug for FeeEstimator
impl Default for FeeEstimator
impl Default for FeeEstimator
fn default() -> FeeEstimator
fn default() -> FeeEstimator
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FeeEstimator
impl Send for FeeEstimator
impl Sync for FeeEstimator
impl Unpin for FeeEstimator
impl UnwindSafe for FeeEstimator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more