Crate lightning_background_processor

Crate lightning_background_processor 

Source
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§

BackgroundProcessorstd
BackgroundProcessor takes 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§

GossipSync
Either P2PGossipSync or RapidGossipSync.

Constants§

NO_LIQUIDITY_MANAGERNon-c_bindings
When initializing a background processor without a liquidity manager, this can be used to avoid specifying a concrete LiquidityManager type.
NO_LIQUIDITY_MANAGER_SYNCNon-c_bindings and std
When initializing a background processor without a liquidity manager, this can be used to avoid specifying a concrete LiquidityManagerSync type.
NO_ONION_MESSENGERNon-c_bindings
When initializing a background processor without an onion messenger, this can be used to avoid specifying a concrete OnionMessenger type.

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_async but allows for KVStoreSync to be used for synchronous background persistence.