]> git.bitcoin.ninja Git - rust-lightning/commit
[bindings] Don't export new functions with unexportable types
authorMatt Corallo <git@bluematt.me>
Mon, 4 Jan 2021 19:15:36 +0000 (14:15 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Jan 2021 00:49:14 +0000 (19:49 -0500)
commitda61713bfd6d4ef8491791d039b23bfc58f2d291
tree20be8538b68d9c5b8f32a4127e8add16ba36a6d7
parent0ca42b54a079546ca5b67c72092728265c5cc2f0
[bindings] Don't export new functions with unexportable types

`CommitmentTransaction::new_with_auxiliary_htlc_data()` includes a
unbounded generic parameter which we can't concretize and it's of
limited immediate use for users in any case. We should eventually
add a non-generic version which uses `()` for the generic but that
can come later.

`CommitmentTransaction::htlcs()` returns a reference to a Vec,
which we cannot currently map. It should, however, be exposed to
users, so in the future we'll need to have a duplication function
which returns Vec of references or a cloned Vec.
lightning/src/ln/chan_utils.rs