]> git.bitcoin.ninja Git - rust-lightning/commit
Use a tuple, not a struct, for `PendingOnionMessage` in bindings
authorMatt Corallo <git@bluematt.me>
Mon, 23 Oct 2023 18:55:17 +0000 (18:55 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 23 Oct 2023 19:42:32 +0000 (19:42 +0000)
commit49a5fdf6aa00c06645290da8343bb2efff0380ee
tree2998dca7d13fd95338f588e5b58401b9609a75e9
parent3f416bc24e0e804e0cae1c8c5650b19500122b6d
Use a tuple, not a struct, for `PendingOnionMessage` in bindings

Bindings aren't currently able to handle a struct with a generic
which is actually exposed - we map all structs concretely to a
single type, whereas having fluctuating types on a struct requires
mapping the inner field to a trait first.

Since this isn't super practical, we make `PendingOnionMessage` a
tuple in bindings, rather than a struct.
lightning/src/ln/channelmanager.rs
lightning/src/onion_message/messenger.rs
lightning/src/onion_message/mod.rs
lightning/src/onion_message/offers.rs