pub trait ProtocolMeta {
// Required methods
fn name() -> &'static str;
fn kind() -> ProtocolKind;
}Expand description
Metadata trait for protocol items.
Provides the item’s stable name and ProtocolKind discriminant.
This is the smallest surface macros need to target for manifest
generation (#47).
§Implementors
Do not implement this trait manually in production code. Use the
#[galeon::command], #[galeon::query], #[galeon::event], or
#[galeon::dto] attribute macros, which emit one concrete impl per
annotated item.
Manual implementation is valid for testing and for types that cannot use the attribute macros.
Required Methods§
Sourcefn kind() -> ProtocolKind
fn kind() -> ProtocolKind
The protocol kind discriminant.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".