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
use Any;
/// # Event
///
/// An event is a struct that can
/// hold any data type. It is
/// then published to the event
/// bus. Once published, the event
/// is then passed to each subscriber
/// when the event bus runs.
///
/// ## Fields
///
/// * `data` - The data that is held by the event.
///
/// ## Methods
///
/// * `new` - Creates a new event.
///
/// * `get_data` - Returns the data held by the event.
///
/// * `set_data` - Updates the data held by the event.
///