pub trait Persister<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> where
    M::Target: 'static + Watch<Signer>,
    T::Target: 'static + BroadcasterInterface,
    K::Target: 'static + KeysInterface<Signer = Signer>,
    F::Target: 'static + FeeEstimator,
    L::Target: 'static + Logger
{ fn persist_manager(
        &self,
        channel_manager: &ChannelManager<Signer, M, T, K, F, L>
    ) -> Result<(), Error>; fn persist_graph(&self, network_graph: &NetworkGraph) -> Result<(), Error>; }
Expand description

Trait that handles persisting a ChannelManager and NetworkGraph to disk.

Required methods

Persist the given ChannelManager to disk, returning an error if persistence failed (which will cause the BackgroundProcessor which called this method to exit).

Persist the given NetworkGraph to disk, returning an error if persistence failed.

Implementors