1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
use fmt;
use AppResult;
use BroadcastStream;
use CancellationToken;
/// A typed configuration change emitted by a [`ConfigWatch`] source.
///
/// Carries only the affected key (never the value), so change notifications are safe to log.
/// Consumers react by re-running the load pipeline and re-decoding.
/// A bounded stream of [`ConfigChange`] events.
///
/// The stream terminates when the originating [`CancellationToken`] fires or the source is dropped.
/// It is the [`Broadcaster`](rskit_stream::Broadcaster) stream specialized to config change events.
pub type ConfigChangeStream = ;
/// Adapter contract for configuration backends that emit change notifications.
///
/// Implemented by backends that can signal updates (a watched file, a remote config service, an in-memory store).
/// The returned stream is bounded and owned;
/// cancellation is driven by the supplied [`CancellationToken`] per the rskit concurrency baseline (ownership + cancellation + shutdown).