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
//! Where a hook was declared.
//!
//! # Responsibilities
//!
//! - [`HookKind`] names the two places a Lua hook is declared and the argument the runtime reads
//! to tell them apart.
/// Where a Lua hook was declared, which decides the event the runtime hands it.
///
/// # Examples
///
/// ```
/// use agentstacks::types::protocol::HookKind;
///
/// assert_eq!(HookKind::Neutral.as_arg(), "neutral");
/// assert_eq!(HookKind::Native.as_arg(), "native");
/// ```