pub trait KVStorePersister {
// Required method
fn persist<W: Writeable>(&self, key: &str, object: &W) -> Result<()>;
}
Expand description
Trait for a key-value store for persisting some writeable object at some key
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.
Persist the given writeable using the provided key