From: Matt Corallo Date: Sun, 26 Jun 2022 18:14:30 +0000 (+0000) Subject: Tag `KVStore` `(C-not exported)` as `Writeable` isn't mapped X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=e0bec37f8d40128dba63681ec528d7c18f9878c4;p=rust-lightning 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. --- diff --git a/lightning/src/util/persist.rs b/lightning/src/util/persist.rs index c271ecc63..feb9ca9a0 100644 --- a/lightning/src/util/persist.rs +++ b/lightning/src/util/persist.rs @@ -20,6 +20,7 @@ use super::{logger::Logger, ser::Writeable}; /// Implementing `KVStorePersister` provides auto-implementations for [`Persister`] /// and [`Persist`] traits. It uses "manager", "network_graph", /// and "monitors/{funding_txo_id}_{funding_txo_index}" for keys. +/// (C-not exported) pub trait KVStorePersister { /// Persist the given writeable using the provided key fn persist(&self, key: &str, object: &W) -> io::Result<()>;