Struct ldk_node::ChannelConfig
source · pub struct ChannelConfig { /* private fields */ }
Expand description
Options which apply on a per-channel basis.
See documentation of LdkChannelConfig
for details.
Implementations§
source§impl ChannelConfig
impl ChannelConfig
sourcepub fn forwarding_fee_proportional_millionths(&self) -> u32
pub fn forwarding_fee_proportional_millionths(&self) -> u32
Returns the set forwarding_fee_proportional_millionths
.
sourcepub fn set_forwarding_fee_proportional_millionths(&self, value: u32)
pub fn set_forwarding_fee_proportional_millionths(&self, value: u32)
Sets the forwarding_fee_proportional_millionths
.
sourcepub fn forwarding_fee_base_msat(&self) -> u32
pub fn forwarding_fee_base_msat(&self) -> u32
Returns the set forwarding_fee_base_msat
.
sourcepub fn set_forwarding_fee_base_msat(&self, fee_msat: u32)
pub fn set_forwarding_fee_base_msat(&self, fee_msat: u32)
Sets the forwarding_fee_base_msat
.
sourcepub fn cltv_expiry_delta(&self) -> u16
pub fn cltv_expiry_delta(&self) -> u16
Returns the set cltv_expiry_delta
.
sourcepub fn set_cltv_expiry_delta(&self, value: u16)
pub fn set_cltv_expiry_delta(&self, value: u16)
Sets the cltv_expiry_delta
.
sourcepub fn force_close_avoidance_max_fee_satoshis(&self) -> u64
pub fn force_close_avoidance_max_fee_satoshis(&self) -> u64
Returns the set force_close_avoidance_max_fee_satoshis
.
sourcepub fn set_force_close_avoidance_max_fee_satoshis(&self, value_sat: u64)
pub fn set_force_close_avoidance_max_fee_satoshis(&self, value_sat: u64)
Sets the force_close_avoidance_max_fee_satoshis
.
sourcepub fn accept_underpaying_htlcs(&self) -> bool
pub fn accept_underpaying_htlcs(&self) -> bool
Returns the set accept_underpaying_htlcs
.
sourcepub fn set_accept_underpaying_htlcs(&self, value: bool)
pub fn set_accept_underpaying_htlcs(&self, value: bool)
Sets the accept_underpaying_htlcs
.
sourcepub fn set_max_dust_htlc_exposure_from_fixed_limit(&self, limit_msat: u64)
pub fn set_max_dust_htlc_exposure_from_fixed_limit(&self, limit_msat: u64)
Sets the max_dust_htlc_exposure
from a fixed limit.
sourcepub fn set_max_dust_htlc_exposure_from_fee_rate_multiplier(
&self,
multiplier: u64
)
pub fn set_max_dust_htlc_exposure_from_fee_rate_multiplier( &self, multiplier: u64 )
Sets the max_dust_htlc_exposure
from a fee rate multiplier.
Trait Implementations§
source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
source§impl Debug for ChannelConfig
impl Debug for ChannelConfig
source§impl Default for ChannelConfig
impl Default for ChannelConfig
source§impl From<ChannelConfig> for ChannelConfig
impl From<ChannelConfig> for ChannelConfig
source§fn from(value: LdkChannelConfig) -> Self
fn from(value: LdkChannelConfig) -> Self
Converts to this type from the input type.
source§impl From<ChannelConfig> for ChannelConfig
impl From<ChannelConfig> for ChannelConfig
source§fn from(value: ChannelConfig) -> Self
fn from(value: ChannelConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnwindSafe for ChannelConfig
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