actrpc-core 0.1.0

Core types and traits for ActRPC.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[macro_export]
macro_rules! action_descriptor_map {
    ($($action:ty),* $(,)?) => {{
        let mut map = ::std::collections::HashMap::new();

        $(
            let descriptor =
                <$action as $crate::action::ActionSpec>::descriptor();

            map.insert(descriptor.kind.clone(), descriptor);
        )*

        map
    }};
}