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
//! Composite platform provider trait.
use Arc;
use async_trait;
use cratePlatformError;
use crateCryptoProvider;
use crateKvStore;
/// Composite platform provider — the three OS-level services a Hyper needs.
///
/// Deliberately narrow and noun-shaped: each method answers one question.
///
/// | Method | Question |
/// |-----------------|-----------------------------------------|
/// | `instance_uid` | "What's my stable ID, across restarts?" |
/// | `secret_store` | "Where do I keep actor credentials?" |
/// | `crypto` | "How do I verify signatures?" |
///
/// Implementations own their own root (a filesystem dir on native, a localStorage
/// prefix on web) and handle setup internally. Callers never think in terms of
/// filesystem paths or directory creation.