macro_rules! impl_plugin_payload {
($ty:ty) => { ... };
}Expand description
Implements PluginPayload for a type that is Clone + Send + Sync + 'static.
Saves boilerplate — instead of writing the three methods manually, just invoke this macro:
use cpex_core::impl_plugin_payload;
#[derive(Debug, Clone)]
struct MyPayload { value: i32 }
impl_plugin_payload!(MyPayload);