Class OffersMessageHandler


  • public class OffersMessageHandler
    extends Object
    A handler for an [`OnionMessage`] containing a BOLT 12 Offers message as its payload. [`OnionMessage`]: crate::ln::msgs::OnionMessage
    • Method Detail

      • destroy

        public void destroy()
        Destroys the object, freeing associated resources. After this call, any access to this object may result in a SEGFAULT or worse. You should generally NEVER call this method. You should let the garbage collector do this for you when it finalizes objects. However, it may be useful for types which represent locks and should be closed immediately to avoid holding locks until the GC runs.
      • handle_message

        public Option_OffersMessageZ handle_message​(OffersMessage message)
        Handles the given message by either responding with an [`Bolt12Invoice`], sending a payment, or replying with an error.