pub struct EventInfo {
pub name: String,
pub doc: String,
pub source: String,
pub builtin: bool,
}Expand description
Owned, source-tagged view of an event descriptor. Merges the two registries:
the compile-time EVENT_DESCRIPTORS linkme slice (built-in events) and the
runtime registry (plugin-defined events, PH7.8b). Introspection + completion
(:describe-events, :describe-event, gen:events) read this unified view
so a plugin’s custom event surfaces exactly like a built-in one.
Fields§
§name: StringUser-facing identifier (lsp.buffer-attached, my-plugin.file-indexed).
doc: StringShort summary shown by :describe-event(s).
source: StringWho owns the declaration — a source crate for built-ins, or the plugin
provenance string (e.g. plugin:git-gutter) for runtime events.
builtin: booltrue = compile-time (linkme) built-in; false = runtime plugin event.
Trait Implementations§
impl Eq for EventInfo
impl StructuralPartialEq for EventInfo
Auto Trait Implementations§
impl Freeze for EventInfo
impl RefUnwindSafe for EventInfo
impl Send for EventInfo
impl Sync for EventInfo
impl Unpin for EventInfo
impl UnsafeUnpin for EventInfo
impl UnwindSafe for EventInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.