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
//! What the hook that ran says about itself, besides its payload: the event
//! its entry named on the guard's command line (`--event`), for an agent whose
//! payloads name none (`HookSpec::names_event`), so the entry, never the
//! payload, says which event a payload is for; and whether a host running
//! another host's hook set its variable.
use ;
use Host;
static EVENT: = new;
/// Record `event`, the guard's `--event`, once as the guard starts.
pub
/// The event the entry named; `None` for every entry that names none
/// (`openmoat_hosts::Host::parse_request_as`).
pub
static PACKAGE: = new;
/// A payload `--plugin` read before the call is decided, which the guard's
/// own read then takes instead of stdin, read once.
static PAYLOAD: = new;
/// Keep `payload`, read from stdin, for the guard's read.
pub
/// The payload [`keep_payload`] kept, once.
pub
/// Record, once as the guard starts, whether it runs for a package of the
/// agent's own plugin channel (`--plugin`, ADR-099).
pub
/// Whether the guard runs for a package (`--plugin`): what it records is
/// marked as the package's.
pub
/// Whether this hook has the variable of a host running another host's hook.
pub