pub struct FeeRate(_);
Expand description
Fee rate
Implementations
sourceimpl FeeRate
impl FeeRate
sourcepub fn from_btc_per_kvb(btc_per_kvb: f32) -> Self
pub fn from_btc_per_kvb(btc_per_kvb: f32) -> Self
Create a new instance of FeeRate
given a float fee rate in btc/kvbytes
sourcepub const fn from_sat_per_vb(sat_per_vb: f32) -> Self
pub const fn from_sat_per_vb(sat_per_vb: f32) -> Self
Create a new instance of FeeRate
given a float fee rate in satoshi/vbyte
sourcepub const fn default_min_relay_fee() -> Self
pub const fn default_min_relay_fee() -> Self
Create a new FeeRate
with the default min relay fee value
sourcepub fn from_wu(fee: u64, wu: usize) -> FeeRate
pub fn from_wu(fee: u64, wu: usize) -> FeeRate
Calculate fee rate from fee
and weight units (wu
).
Trait Implementations
sourceimpl PartialOrd<FeeRate> for FeeRate
impl PartialOrd<FeeRate> for FeeRate
sourcefn partial_cmp(&self, other: &FeeRate) -> Option<Ordering>
fn partial_cmp(&self, other: &FeeRate) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for FeeRate
impl StructuralPartialEq for FeeRate
Auto Trait Implementations
impl RefUnwindSafe for FeeRate
impl Send for FeeRate
impl Sync for FeeRate
impl Unpin for FeeRate
impl UnwindSafe for FeeRate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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