pub struct HandlerEntry {
pub id: u64,
pub plugin_name: String,
pub priority: i32,
pub handler: EventHandler,
}Expand description
Entry in the event handler registry
Stores handler metadata and the handler function itself.
Fields§
§id: u64Unique handler ID
plugin_name: StringName of the plugin that registered this handler
priority: i32Handler priority (higher = called first)
Handlers are sorted by priority in descending order. Typical priorities:
- 1000+: Critical system handlers
- 100-999: High priority plugin handlers
- 0-99: Normal priority handlers
- Negative: Low priority background handlers
handler: EventHandlerThe handler function
Implementations§
Source§impl HandlerEntry
impl HandlerEntry
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HandlerEntry
impl !RefUnwindSafe for HandlerEntry
impl Send for HandlerEntry
impl Sync for HandlerEntry
impl Unpin for HandlerEntry
impl UnsafeUnpin for HandlerEntry
impl !UnwindSafe for HandlerEntry
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.