Crate hot_reload

Crate hot_reload 

Source
Expand description

Core abstractions for building hot-reloadable data sources in async Rust.

Exposes traits for periodic reloaders as well as realtime watch helpers, making it easier to integrate dynamic configuration and other live-updating values into asynchronous applications.

Structs§

RealtimeWatchHandle
Handle for realtime watching that receives change events
ReloaderConfig
Configuration for the reloader service
ReloaderReceiver
Receiver wrapper for listening to reloaded values
ReloaderSender
Sender wrapper for broadcasting reloaded values to receivers
ReloaderService
Main service for watching and reloading target values from a source.

Enums§

ReloaderError
Errors that can occur during reloading operations
WatchEvent
Event emitted by realtime watchers
WatchStrategy
Strategy for watching and reloading target values

Traits§

RealtimeWatch
Trait for reloaders that support realtime event-based monitoring.
Reload
Trait defining the responsibility of reloaders to periodically load target values from a source.

Type Aliases§

ReloadResult
Type alias for a commonly used Result type