]> git.bitcoin.ninja Git - rust-lightning/commit
Tag `KVStore` `(C-not exported)` as `Writeable` isn't mapped
authorMatt Corallo <git@bluematt.me>
Sun, 26 Jun 2022 18:14:30 +0000 (18:14 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 26 Jun 2022 18:36:41 +0000 (18:36 +0000)
commit997e75a65a98c6e72d6306d1a4d8c15bce5de095
tree4d05d52998cd6f163ca9e0f68487d278c1673ba6
parent1597df4b5220427caa28c49f97b140464026ec79
Tag `KVStore` `(C-not exported)` as `Writeable` isn't mapped

Currently `Writeable` is mapped manually, making it impossible to
automatically map a trait method that is parameterized by
`Writeable` (as is true for the `write` method on `KVStore`).

Ultimately we'll want to move to automatically mapping `Writeable`
like any other trait (only manually mapping the std `Write` and
`Read` traits), so this is only a candidate for the bindings branch,
not upstream. That may take a few releases, however.
lightning/src/util/persist.rs