]> git.bitcoin.ninja Git - rust-lightning/commit
Pull the guts of `ResponseInstruction` into a new enum
authorMatt Corallo <git@bluematt.me>
Thu, 22 Aug 2024 01:35:18 +0000 (01:35 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 22 Aug 2024 22:17:56 +0000 (22:17 +0000)
commit2695331686f41f1ba75de0692fa1bf2ae0792e3a
tree021f9420f4995a7880b213b7fe73e7bc325094dd
parentcd93a41bd690373933d42e9b78e4b16c75be9f93
Pull the guts of `ResponseInstruction` into a new enum

In the coming commits we'll use the `ResponseInstruction` enum's
contents for all messages, allowing message senders to rely on the
in-`OnionMessegner` reply path selection logic.

In order to do so and avoid users confusing the new
`MessageSendInstructions` for `ResponseInstruction`, we leave
`ResponseInstruction` as a now-unconstructible struct which wraps a
`MessageSendInstructions`.
lightning/src/onion_message/messenger.rs