Module breez_sdk_core::lightning::util::persist
Expand description
This module contains a simple key-value store trait KVStore
that
allows one to implement the persistence for ChannelManager
, NetworkGraph
,
and ChannelMonitor
all in one place.
Structs§
Constants§
- The key under which the
ChannelManager
will be persisted. - The primary namespace under which the
ChannelManager
will be persisted. - The secondary namespace under which the
ChannelManager
will be persisted. - The primary namespace under which
ChannelMonitor
s will be persisted. - The secondary namespace under which
ChannelMonitor
s will be persisted. - The primary namespace under which
ChannelMonitorUpdate
s will be persisted. - The alphabet of characters allowed for namespaces and keys.
- The maximum number of characters namespaces and keys may have.
- A sentinel value to be prepended to monitors persisted by the
MonitorUpdatingPersister
. - The key under which the
NetworkGraph
will be persisted. - The primary namespace under which the
NetworkGraph
will be persisted. - The secondary namespace under which the
NetworkGraph
will be persisted. - The key under which the
WriteableScore
will be persisted. - The primary namespace under which the
WriteableScore
will be persisted. - The secondary namespace under which the
WriteableScore
will be persisted.
Traits§
- Provides an interface that allows storage and retrieval of persisted values that are associated with given keys.
Functions§
- Read previously persisted
ChannelMonitor
s from the store.