pub struct LspInfo {
pub node_pk: NodePk,
pub private_p2p_addr: LxSocketAddress,
pub lsp_usernode_base_fee_msat: u32,
pub lsp_usernode_prop_fee_ppm: u32,
pub lsp_external_prop_fee_ppm: u32,
pub lsp_external_base_fee_msat: u32,
pub cltv_expiry_delta: u16,
pub htlc_minimum_msat: u64,
pub htlc_maximum_msat: u64,
}Expand description
Information about the LSP which the user node needs to connect and to generate route hints when no channel exists.
Fields§
§node_pk: NodePk§private_p2p_addr: LxSocketAddressThe socket on which the LSP accepts P2P LN connections from user nodes
lsp_usernode_base_fee_msat: u32LSP’s configured base fee for forwarding over LSP -> User channels.
- For inbound payments, this fee is encoded in the invoice route hints
(as part of the
RoutingFeesstruct) - Also used to estimate how much can be sent to another Lexe user.
lsp_usernode_prop_fee_ppm: u32LSP’s configured prop fee for forwarding over LSP -> User channels.
- For inbound payments, this fee is encoded in the invoice route hints
(as part of the
RoutingFeesstruct) - Also used to estimate how much can be sent to another Lexe user.
lsp_external_prop_fee_ppm: u32LSP’s configured prop fee for forwarding over LSP -> External channels.
lsp_external_base_fee_msat: u32LSP’s configured base fee for forwarding over LSP -> External channels.
cltv_expiry_delta: u16§htlc_minimum_msat: u64§htlc_maximum_msat: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LspInfo
impl<'de> Deserialize<'de> for LspInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LspInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LspInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LspInfo
impl Serialize for LspInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for LspInfo
impl StructuralPartialEq for LspInfo
Auto Trait Implementations§
impl Freeze for LspInfo
impl RefUnwindSafe for LspInfo
impl Send for LspInfo
impl Sync for LspInfo
impl Unpin for LspInfo
impl UnsafeUnpin for LspInfo
impl UnwindSafe for LspInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.