pub enum AsyncPaymentsMessage {
OfferPathsRequest(OfferPathsRequest),
OfferPaths(OfferPaths),
ServeStaticInvoice(ServeStaticInvoice),
StaticInvoicePersisted(StaticInvoicePersisted),
HeldHtlcAvailable(HeldHtlcAvailable),
ReleaseHeldHtlc(ReleaseHeldHtlc),
}Expand description
Possible async payment messages sent and received via an OnionMessage.
Variants§
OfferPathsRequest(OfferPathsRequest)
A request from an async recipient for BlindedMessagePaths, sent to a static invoice
server.
OfferPaths(OfferPaths)
BlindedMessagePaths to be included in an async recipient’s Offer::paths, sent by a
static invoice server in response to an OfferPathsRequest.
ServeStaticInvoice(ServeStaticInvoice)
A request from an async recipient to a static invoice server that a StaticInvoice be
provided in response to InvoiceRequests from payers.
StaticInvoicePersisted(StaticInvoicePersisted)
Confirmation from a static invoice server that a StaticInvoice was persisted and the
corresponding Offer is ready to be used to receive async payments. Sent to an async
recipient in response to a ServeStaticInvoice message.
HeldHtlcAvailable(HeldHtlcAvailable)
An HTLC is being held upstream for the often-offline recipient, to be released via
ReleaseHeldHtlc.
ReleaseHeldHtlc(ReleaseHeldHtlc)
Releases the HTLC corresponding to an inbound HeldHtlcAvailable message.
Implementations§
Source§impl AsyncPaymentsMessage
impl AsyncPaymentsMessage
Sourcepub fn is_known_type(tlv_type: u64) -> bool
pub fn is_known_type(tlv_type: u64) -> bool
Returns whether tlv_type corresponds to a TLV record for async payment messages.
Trait Implementations§
Source§impl Clone for AsyncPaymentsMessage
impl Clone for AsyncPaymentsMessage
Source§fn clone(&self) -> AsyncPaymentsMessage
fn clone(&self) -> AsyncPaymentsMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more