Crate env_watcher

Source

Modules§

derive

Macros§

init_env_watch
Initialize env watcher (singleton) with duration.
sub_env
Subscribe with Receiver and Data
sub_env_snapshot
Subscribe by snapshot

Structs§

EnvironmentData
Baseline implementation for data. A separate thread listens for data changes through the channel, in case of data changes, we receive an event and change the data snapshot.
EnvironmentWatcher
The current state of the environment

Enums§

ChangeState
Changing the current state for a subscriber
Error
Library error.
Subscribe

Type Aliases§

Result