Use a trait to handle ChannelManager persistence instead of an Fn
authorMatt Corallo <git@bluematt.me>
Tue, 13 Apr 2021 23:38:31 +0000 (19:38 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 15 Apr 2021 19:23:05 +0000 (15:23 -0400)
commit34e429fdf60a426f54bfbf5cce001cb6960874f8
treea878ab862b964755ead168a6207d4e5431924b8c
parentf223d2a72e1d0e44694db94eba25386d23ff8667
Use a trait to handle ChannelManager persistence instead of an Fn

This avoids having to write new support for closures in the C
bindings generation but, more importantly, we really need to also
be handling Events in the same trait, so it makes sense to go ahead
and convert it.

For compatibility, the trait is implemented for any matching
closure.
background-processor/src/lib.rs