pub struct ChannelTlcInfo {
pub timestamp: u64,
pub enabled: bool,
pub tlc_fee_proportional_millionths: u128,
pub tlc_expiry_delta: u64,
pub tlc_minimum_value: u128,
}Expand description
TLC-related information for a channel. We can update this information through the channel update message.
Fields§
§timestamp: u64The timestamp when the following information is updated.
enabled: boolWhether this channel is enabled for TLC forwarding or not.
tlc_fee_proportional_millionths: u128The fee rate for TLC transfers. We only have these values set when
this is a public channel. Both sides may set this value differently.
This is a fee that is paid by the sender of the TLC.
The detailed calculation for the fee of forwarding TLCs is
fee = round_above(tlc_fee_proportional_millionths * tlc_value / 1,000,000).
tlc_expiry_delta: u64The expiry delta timestamp, in milliseconds, for the TLC.
tlc_minimum_value: u128The minimal TLC value we can receive in relay TLC.
Implementations§
Trait Implementations§
Source§impl Clone for ChannelTlcInfo
impl Clone for ChannelTlcInfo
Source§fn clone(&self) -> ChannelTlcInfo
fn clone(&self) -> ChannelTlcInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelTlcInfo
impl Debug for ChannelTlcInfo
Source§impl Default for ChannelTlcInfo
impl Default for ChannelTlcInfo
Source§fn default() -> ChannelTlcInfo
fn default() -> ChannelTlcInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelTlcInfo
impl<'de> Deserialize<'de> for ChannelTlcInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ChannelTlcInfo> for ChannelUpdateInfo
impl From<&ChannelTlcInfo> for ChannelUpdateInfo
Source§fn from(info: &ChannelTlcInfo) -> Self
fn from(info: &ChannelTlcInfo) -> Self
Converts to this type from the input type.
Source§impl From<ChannelTlcInfo> for ChannelUpdateInfo
impl From<ChannelTlcInfo> for ChannelUpdateInfo
Source§fn from(info: ChannelTlcInfo) -> Self
fn from(info: ChannelTlcInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChannelTlcInfo
impl PartialEq for ChannelTlcInfo
Source§impl Serialize for ChannelTlcInfo
impl Serialize for ChannelTlcInfo
impl Eq for ChannelTlcInfo
impl StructuralPartialEq for ChannelTlcInfo
Auto Trait Implementations§
impl Freeze for ChannelTlcInfo
impl RefUnwindSafe for ChannelTlcInfo
impl Send for ChannelTlcInfo
impl Sync for ChannelTlcInfo
impl Unpin for ChannelTlcInfo
impl UnsafeUnpin for ChannelTlcInfo
impl UnwindSafe for ChannelTlcInfo
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