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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//! Semiont's Rust SDK: a client of a knowledge base (`client`), with a
//! namespace per flow of the protocol (`namespaces`), over any transport.
//! Under it: the protocol's types, channels, error codes and timing, as
//! protocol/specs/ states them; the transport contract and the bus client over it; a
//! client's own bus; the shapes a namespace's methods return (`running`,
//! `cached`), the cache its queries answer from and what refreshes it
//! (`cache`, `refresh`), where a client keeps what must outlive it
//! (`storage`), and the stream's place kept with the caches (`resume`); the flows held as state a consumer reads and watches
//! (`state`); a session with a knowledge base and the registry of the ones
//! an application has signed in to (`session`); the sign-ins `semiont login`
//! keeps, as a storage (`sign_in_store`); the media types a knowledge base
//! admits (`media_types`); the readers of a resource's description, and of
//! its bytes as text (`resources`); the knowledge bases a launcher
//! manages (`discovery`); when a failure is worth another attempt; whether a
//! job is one a claim takes (`job_filter`); a worker's side of the job queue:
//! its claims, the jobs it holds and whether a failed one is retried
//! (`claims`); the readers of an annotation, and the builders of the ones a
//! worker commits (`annotations`);
//! how a knowledge base names its principals and the realm's roles; and the
//! bus log. It does no HTTP and links no telemetry:
//! `semiont-http-transport` carries it over a gateway.
// No unsafe code, but on Windows the one call that gives the sign-in store's
// directory its access list (`sign_in_store`), which the system offers only
// as foreign functions.
// What arrives off the wire is never assumed to be what was expected, and
// neither is anything else: the library has no `unwrap` and no `expect`.
pub use fault_said;
use ;
/// What `mutex` guards. A holder that panicked left it as it was, and it is
/// read as it is: nothing here is left half-written across a panic.
pub Sized>