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§
- Event
Kind Collision - One duplicate
EventKindregistration discovered in the current binary. - Event
Payload Registration - 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
EventPayloadkind registrations. - find_
kind_ collisions - Return all
EventPayloadkind collisions visible in the current binary. - scan_
for_ kind_ collisions - Scan all
EventPayloadregistrations in the current binary for kind collisions. - validate_
category - Validate an EventKind category value.
- validate_
type_ id - Validate an EventKind type_id value.