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
/// Implements [`Storable`][trait@Storable] for a struct or enum.
///
/// # Attributes
///
/// * `data_type = "Type"`: Sets the [`Storable::DataType`][type@Storable::DataType]. Defaults to `Self`.
/// * `crate = ::veecle_os_runtime`: Overrides the path to the `veecle-os-runtime` crate in case the import was renamed.
///
/// ```
/// use core::fmt::Debug;
/// use veecle_os_runtime::Storable;
///
/// // `DataType = Self`
/// #[derive(Debug, Storable)]
/// pub struct Sensor<T>
/// where
/// T: Debug,
/// {
/// test: u8,
/// test0: u8,
/// test1: T,
/// }
///
/// // `DataType = Self`
/// #[derive(Debug, Storable)]
/// pub struct Motor {
/// test: u8,
/// }
///
/// // `DataType = Self`
/// #[derive(Debug, Storable)]
/// pub enum Actuator {
/// Variant1,
/// Variant2(u8),
/// Variant3 { test: u8 },
/// }
///
/// // `DataType = u8`
/// #[derive(Storable)]
/// #[storable(data_type = "u8")]
/// pub struct EventId;
/// ```
pub use Storable;
pub use Slot;
pub use Storable;
pub use Waiter;