pub struct LSPS1Liquidity { /* private fields */ }Expand description
A liquidity handler allowing to request channels via the bLIP-51 / LSPS1 protocol.
Should be retrieved by calling Node::lsps1_liquidity.
To open bLIP-52 / LSPS2 JIT channels, please refer to
Bolt11Payment::receive_via_jit_channel.
Implementations§
Source§impl LSPS1Liquidity
impl LSPS1Liquidity
Sourcepub fn request_channel(
&self,
lsp_balance_sat: u64,
client_balance_sat: u64,
channel_expiry_blocks: u32,
announce_channel: bool,
) -> Result<LSPS1OrderStatus, Error>
pub fn request_channel( &self, lsp_balance_sat: u64, client_balance_sat: u64, channel_expiry_blocks: u32, announce_channel: bool, ) -> Result<LSPS1OrderStatus, Error>
Connects to the configured LSP and places an order for an inbound channel.
The channel will be opened after one of the returned payment options has successfully been paid.
Sourcepub fn check_order_status(
&self,
order_id: OrderId,
) -> Result<LSPS1OrderStatus, Error>
pub fn check_order_status( &self, order_id: OrderId, ) -> Result<LSPS1OrderStatus, Error>
Connects to the configured LSP and checks for the status of a previously-placed order.
Trait Implementations§
Source§impl Clone for LSPS1Liquidity
impl Clone for LSPS1Liquidity
Source§fn clone(&self) -> LSPS1Liquidity
fn clone(&self) -> LSPS1Liquidity
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 moreAuto Trait Implementations§
impl Freeze for LSPS1Liquidity
impl !RefUnwindSafe for LSPS1Liquidity
impl Send for LSPS1Liquidity
impl Sync for LSPS1Liquidity
impl Unpin for LSPS1Liquidity
impl !UnwindSafe for LSPS1Liquidity
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more