pub trait OffersMessageHandler {
    // Required method
    fn handle_message(&self, message: OffersMessage) -> Option<OffersMessage>;
}
Expand description

A handler for an OnionMessage containing a BOLT 12 Offers message as its payload.

Required Methods§

fn handle_message(&self, message: OffersMessage) -> Option<OffersMessage>

Handles the given message by either responding with an Bolt12Invoice, sending a payment, or replying with an error.

Implementors§