Skip to content

Commit bf84742

Browse files
committed
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.
1 parent b007ae7 commit bf84742

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/util/persist.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use super::{logger::Logger, ser::Writeable};
2020
/// Implementing `KVStorePersister` provides auto-implementations for [`Persister`]
2121
/// and [`Persist`] traits. It uses "manager", "network_graph",
2222
/// and "monitors/{funding_txo_id}_{funding_txo_index}" for keys.
23+
/// (C-not exported)
2324
pub trait KVStorePersister {
2425
/// Persist the given writeable using the provided key
2526
fn persist<W: Writeable>(&self, key: &str, object: &W) -> io::Result<()>;

0 commit comments

Comments
 (0)