pub enum LSPS2ClientEvent {
OpeningParametersReady {
request_id: LSPSRequestId,
counterparty_node_id: PublicKey,
opening_fee_params_menu: Vec<LSPS2OpeningFeeParams>,
},
InvoiceParametersReady {
request_id: LSPSRequestId,
counterparty_node_id: PublicKey,
intercept_scid: u64,
cltv_expiry_delta: u32,
payment_size_msat: Option<u64>,
},
GetInfoFailed {
request_id: LSPSRequestId,
counterparty_node_id: PublicKey,
error: LSPSResponseError,
},
BuyRequestFailed {
request_id: LSPSRequestId,
counterparty_node_id: PublicKey,
error: LSPSResponseError,
},
}Expand description
An event which an LSPS2 client should take some action in response to.
Variants§
OpeningParametersReady
Information from the LSP about their current fee rates and channel parameters.
You must call LSPS2ClientHandler::select_opening_params with the fee parameter
you want to use if you wish to proceed opening a channel.
**Note: ** This event will not be persisted across restarts.
Fields
request_id: LSPSRequestIdThe identifier of the issued bLIP-52 / LSPS2 get_info request, as returned by
LSPS2ClientHandler::request_opening_params
This can be used to track which request this event corresponds to.
The menu of fee parameters the LSP is offering at this time. You must select one of these if you wish to proceed.
InvoiceParametersReady
Provides the necessary information to generate a payable invoice that then may be given to the payer.
When the invoice is paid, the LSP will open a channel with the previously agreed upon parameters to you.
**Note: ** This event will not be persisted across restarts.
Fields
request_id: LSPSRequestIdThe identifier of the issued bLIP-52 / LSPS2 buy request, as returned by
LSPS2ClientHandler::select_opening_params.
This can be used to track which request this event corresponds to.
GetInfoFailed
A request previously issued via LSPS2ClientHandler::request_opening_params
failed as the LSP returned an error response.
**Note: ** This event will not be persisted across restarts.
Fields
request_id: LSPSRequestIdThe identifier of the issued LSPS2 get_info request, as returned by
LSPS2ClientHandler::request_opening_params.
This can be used to track which request this event corresponds to.
error: LSPSResponseErrorThe error that was returned.
BuyRequestFailed
A request previously issued via LSPS2ClientHandler::select_opening_params
failed as the LSP returned an error response.
**Note: ** This event will not be persisted across restarts.
Fields
request_id: LSPSRequestIdThe identifier of the issued LSPS2 buy request, as returned by
LSPS2ClientHandler::select_opening_params.
This can be used to track which request this event corresponds to.
error: LSPSResponseErrorThe error that was returned.
Trait Implementations§
Source§impl Clone for LSPS2ClientEvent
impl Clone for LSPS2ClientEvent
Source§fn clone(&self) -> LSPS2ClientEvent
fn clone(&self) -> LSPS2ClientEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more