Skip to main content

Crate batpak_macros_support

Crate batpak_macros_support 

Source
Expand description

Runtime support types for #[derive(EventPayload)].

This crate is an implementation detail of the batpak macro surface. Its public items are re-exported from batpak::__private; do not depend on it directly.

Re-exports§

pub extern crate inventory;

Structs§

EventKindCollision
One duplicate EventKind registration discovered in the current binary.
EventPayloadRegistration
Registration item emitted once per #[derive(EventPayload)] type.

Constants§

CATEGORY_MAX
Maximum valid category value (inclusive, 4 bits).
CATEGORY_MIN
Minimum valid category value (inclusive).
TYPE_ID_MAX
Maximum valid type_id value (inclusive, 12 bits).

Functions§

assert_no_kind_collisions
Panic if the current binary has duplicate EventPayload kind registrations.
find_kind_collisions
Return all EventPayload kind collisions visible in the current binary.
scan_for_kind_collisions
Scan all EventPayload registrations in the current binary for kind collisions.
validate_category
Validate an EventKind category value.
validate_type_id
Validate an EventKind type_id value.