pub struct FeeRate(/* private fields */);Expand description
Fee rate
Implementations§
Source§impl FeeRate
impl FeeRate
Sourcepub fn from_sat_per_kwu(sat_per_kwu: f32) -> Self
pub fn from_sat_per_kwu(sat_per_kwu: f32) -> Self
Create a new instance of FeeRate given a float fee rate in sats/kwu
Sourcepub fn from_sat_per_kvb(sat_per_kvb: f32) -> Self
pub fn from_sat_per_kvb(sat_per_kvb: f32) -> Self
Create a new instance of FeeRate given a float fee rate in sats/kvb
Sourcepub fn from_btc_per_kvb(btc_per_kvb: f32) -> Self
pub fn from_btc_per_kvb(btc_per_kvb: f32) -> Self
Sourcepub fn from_sat_per_vb(sat_per_vb: f32) -> Self
pub fn from_sat_per_vb(sat_per_vb: f32) -> Self
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: Weight) -> FeeRate
pub fn from_wu(fee: u64, wu: Weight) -> FeeRate
Calculate fee rate from fee and weight units (wu).
Sourcepub fn as_sat_per_vb(&self) -> f32
pub fn as_sat_per_vb(&self) -> f32
Return the value as satoshi/vbyte
Trait Implementations§
Source§impl PartialOrd for FeeRate
impl PartialOrd for FeeRate
impl Copy for FeeRate
impl StructuralPartialEq for FeeRate
Auto Trait Implementations§
impl Freeze for FeeRate
impl RefUnwindSafe for FeeRate
impl Send for FeeRate
impl Sync for FeeRate
impl Unpin for FeeRate
impl UnwindSafe for FeeRate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more