Expand description
Utilities that take care of tasks that (1) need to happen periodically to keep Rust-Lightning
running properly, and (2) either can or should be run in the background.
See docs for BackgroundProcessor for more details.
Structs§
- Background
Processor std BackgroundProcessortakes care of tasks that (1) need to happen periodically to keep Rust-Lightning running properly, and (2) either can or should be run in the background. Its responsibilities are:
Enums§
- Gossip
Sync - Either
P2PGossipSyncorRapidGossipSync.
Constants§
- NO_
LIQUIDITY_ MANAGER Non- c_bindings - When initializing a background processor without a liquidity manager, this can be used to avoid
specifying a concrete
LiquidityManagertype. - NO_
LIQUIDITY_ MANAGER_ SYNC Non- c_bindingsandstd - When initializing a background processor without a liquidity manager, this can be used to avoid
specifying a concrete
LiquidityManagerSynctype. - NO_
ONION_ MESSENGER Non- c_bindings - When initializing a background processor without an onion messenger, this can be used to avoid
specifying a concrete
OnionMessengertype.
Functions§
- process_
events_ async - Processes background events in a future.
- process_
events_ async_ with_ kv_ store_ sync - Async events processor that is based on
process_events_asyncbut allows forKVStoreSyncto be used for synchronous background persistence.