pub struct DispatcherEntry {
pub label: &'static str,
pub variant_kinds: fn() -> Vec<&'static str>,
pub variant_fields: fn() -> Vec<(&'static str, Vec<&'static str>)>,
pub variant_count: fn() -> usize,
}Expand description
One entry in the dispatcher catalog. Materialized via
register_dispatcher! — the
macro emits an inventory::submit! block per registered
dispatcher.
Fields§
§label: &'static strCaller-supplied label (e.g. "gen.cargo.crate-quirk",
"shinka.migration", "saguao.permission"). Dot-separated
fleet-wide-unique identifier. Used by operator queries +
substrate emitters.
variant_kinds: fn() -> Vec<&'static str>Function returning the variant universe (kebab-case serde
tags). Indirected as a fn pointer so the catalog stays
'static while the underlying enum can live anywhere.
variant_fields: fn() -> Vec<(&'static str, Vec<&'static str>)>Function returning per-variant field names. Mirror of
TypedDispatcher::variant_fields.
variant_count: fn() -> usizeFunction returning the variant count.
Trait Implementations§
impl Collect for DispatcherEntry
Auto Trait Implementations§
impl Freeze for DispatcherEntry
impl RefUnwindSafe for DispatcherEntry
impl Send for DispatcherEntry
impl Sync for DispatcherEntry
impl Unpin for DispatcherEntry
impl UnsafeUnpin for DispatcherEntry
impl UnwindSafe for DispatcherEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more