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. - Incomplete
Upcast Chain - A registered payload kind whose declared
PAYLOAD_VERSION > 1is missing one or morefrom_versionhops in its registered upcast chain. - Upcast
Registration - Registration item emitted once per
(KIND, from_version)upcast step.
Constants§
- 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_
incomplete_ upcast_ chains - Return every registered payload kind whose declared version
> 1lacks a complete1 -> ... -> Nupcast chain in the linked registry. - 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. - upcast_
steps_ for - Return all registered upcast steps for
kind_bits, indexed byfrom_version. - validate_
category - Validate an EventKind category value.
- validate_
type_ id - Validate an EventKind type_id value.